!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=23)}([function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){(function(r){function i(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))}),t.splice(o,0,r)}}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function u(){var t;try{t=e.storage.debug}catch(t){}return!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG),t}e=t.exports=n(41),e.log=s,e.formatArgs=o,e.save=a,e.load=u,e.useColors=i,e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(u())}).call(e,n(40))},function(t,e){t.exports=window.angular},function(t,e,n){function r(t){if(t)return i(t)}function i(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,i=0;i<n.length;i++)if((r=n[i])===e||r.fn===e){n.splice(i,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,e)}return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){(function(t){function r(t,n){return n("b"+e.packets[t.type]+t.data.data)}function i(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=t.data,o=new Uint8Array(i),s=new Uint8Array(1+i.byteLength);s[0]=$[t.type];for(var a=0;a<o.length;a++)s[a+1]=o[a];return r(s.buffer)}function o(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=new FileReader;return i.onload=function(){t.data=i.result,e.encodePacket(t,n,!0,r)},i.readAsArrayBuffer(t.data)}function s(t,n,r){if(!n)return e.encodeBase64Packet(t,r);if(m)return o(t,n,r);var i=new Uint8Array(1);return i[0]=$[t.type],r(new w([i.buffer,t.data]))}function a(t){try{t=d.decode(t,{strict:!1})}catch(t){return!1}return t}function u(t,e,n){for(var r=new Array(t.length),i=p(t.length,n),o=0;o<t.length;o++)!function(t,n,i){e(n,function(e,n){r[t]=n,i(e,r)})}(o,t[o],i)}var c,l=n(48),f=n(17),h=n(53),p=n(54),d=n(55);t&&t.ArrayBuffer&&(c=n(57));var g="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),v="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),m=g||v;e.protocol=3;var $=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},y=l($),b={type:"error",data:"parser error"},w=n(58);e.encodePacket=function(e,n,o,a){"function"==typeof n&&(a=n,n=!1),"function"==typeof o&&(a=o,o=null);var u=void 0===e.data?void 0:e.data.buffer||e.data;if(t.ArrayBuffer&&u instanceof ArrayBuffer)return i(e,n,a);if(w&&u instanceof t.Blob)return s(e,n,a);if(u&&u.base64)return r(e,a);var c=$[e.type];return void 0!==e.data&&(c+=o?d.encode(String(e.data),{strict:!1}):String(e.data)),a(""+c)},e.encodeBase64Packet=function(n,r){var i="b"+e.packets[n.type];if(w&&n.data instanceof t.Blob){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];r(i+t)},o.readAsDataURL(n.data)}var s;try{s=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(t){for(var a=new Uint8Array(n.data),u=new Array(a.length),c=0;c<a.length;c++)u[c]=a[c];s=String.fromCharCode.apply(null,u)}return i+=t.btoa(s),r(i)},e.decodePacket=function(t,n,r){if(void 0===t)return b;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(r&&!1===(t=a(t)))return b;var i=t.charAt(0);return Number(i)==i&&y[i]?t.length>1?{type:y[i],data:t.substring(1)}:{type:y[i]}:b}var o=new Uint8Array(t),i=o[0],s=h(t,1);return w&&"blob"===n&&(s=new w([s])),{type:y[i],data:s}},e.decodeBase64Packet=function(t,e){var n=y[t.charAt(0)];if(!c)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=c.decode(t.substr(1));return"blob"===e&&w&&(r=new w([r])),{type:n,data:r}},e.encodePayload=function(t,n,r){function i(t){return t.length+":"+t}function o(t,r){e.encodePacket(t,!!s&&n,!1,function(t){r(null,i(t))})}"function"==typeof n&&(r=n,n=null);var s=f(t);return n&&s?w&&!m?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void u(t,o,function(t,e){return r(e.join(""))}):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);"function"==typeof n&&(r=n,n=null);var i;if(""===t)return r(b,0,1);for(var o,s,a="",u=0,c=t.length;u<c;u++){var l=t.charAt(u);if(":"===l){if(""===a||a!=(o=Number(a)))return r(b,0,1);if(s=t.substr(u+1,o),a!=s.length)return r(b,0,1);if(s.length){if(i=e.decodePacket(s,n,!1),b.type===i.type&&b.data===i.data)return r(b,0,1);if(!1===r(i,u+o,c))return}u+=o,a=""}else a+=l}return""!==a?r(b,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){return n(null,t)})}if(!t.length)return n(new ArrayBuffer(0));u(t,r,function(t,e){var r=e.reduce(function(t,e){var n;return n="string"==typeof e?e.length:e.byteLength,t+n.toString().length+n+2},0),i=new Uint8Array(r),o=0;return e.forEach(function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),s=0;s<t.length;s++)r[s]=t.charCodeAt(s);n=r.buffer}i[o++]=e?0:1;for(var a=n.byteLength.toString(),s=0;s<a.length;s++)i[o++]=parseInt(a[s]);i[o++]=255;for(var r=new Uint8Array(n),s=0;s<r.length;s++)i[o++]=r[s]}),n(i.buffer)})},e.encodePayloadAsBlob=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);t=r.buffer,e[0]=0}for(var o=t instanceof ArrayBuffer?t.byteLength:t.size,s=o.toString(),a=new Uint8Array(s.length+1),i=0;i<s.length;i++)a[i]=parseInt(s[i]);if(a[s.length]=255,w){var u=new w([e.buffer,a.buffer,t]);n(null,u)}})}u(t,r,function(t,e){return n(new w(e))})},e.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var i=t,o=[];i.byteLength>0;){for(var s=new Uint8Array(i),a=0===s[0],u="",c=1;255!==s[c];c++){if(u.length>310)return r(b,0,1);u+=s[c]}i=h(i,2+u.length),u=parseInt(u);var l=h(i,0,u);if(a)try{l=String.fromCharCode.apply(null,new Uint8Array(l))}catch(t){var f=new Uint8Array(l);l="";for(var c=0;c<f.length;c++)l+=String.fromCharCode(f[c])}o.push(l),i=h(i,u)}var p=o.length;o.forEach(function(t,i){r(e.decodePacket(t,n,!0),i,p)})}}).call(e,n(0))},function(t,e){t.exports=window.angular.module("BrowserSync")},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){function r(){}function i(t){var n=""+t.type;if(e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(n+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(n+=t.nsp+","),null!=t.id&&(n+=t.id),null!=t.data){var r=o(t.data);if(!1===r)return m;n+=r}return h("encoded %j as %s",t,n),n}function o(t){try{return JSON.stringify(t)}catch(t){return!1}}function s(t,e){function n(t){var n=d.deconstructPacket(t),r=i(n.packet),o=n.buffers;o.unshift(r),e(o)}d.removeBlobs(t,n)}function a(){this.reconstructor=null}function u(t){var n=0,r={type:Number(t.charAt(0))};if(null==e.types[r.type])return f("unknown packet type "+r.type);if(e.BINARY_EVENT===r.type||e.BINARY_ACK===r.type){for(var i="";"-"!==t.charAt(++n)&&(i+=t.charAt(n),n!=t.length););if(i!=Number(i)||"-"!==t.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(i)}if("/"===t.charAt(n+1))for(r.nsp="";++n;){var o=t.charAt(n);if(","===o)break;if(r.nsp+=o,n===t.length)break}else r.nsp="/";var s=t.charAt(n+1);if(""!==s&&Number(s)==s){for(r.id="";++n;){var o=t.charAt(n);if(null==o||Number(o)!=o){--n;break}if(r.id+=t.charAt(n),n===t.length)break}r.id=Number(r.id)}if(t.charAt(++n)){var a=c(t.substr(n));if(!(!1!==a&&(r.type===e.ERROR||g(a))))return f("invalid payload");r.data=a}return h("decoded %s as %j",t,r),r}function c(t){try{return JSON.parse(t)}catch(t){return!1}}function l(t){this.reconPack=t,this.buffers=[]}function f(t){return{type:e.ERROR,data:"parser error: "+t}}var h=n(1)("socket.io-parser"),p=n(3),d=n(43),g=n(9),v=n(13);e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=r,e.Decoder=a;var m=e.ERROR+'"encode error"';r.prototype.encode=function(t,n){if(h("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type)s(t,n);else{n([i(t)])}},p(a.prototype),a.prototype.add=function(t){var n;if("string"==typeof t)n=u(t),e.BINARY_EVENT===n.type||e.BINARY_ACK===n.type?(this.reconstructor=new l(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!v(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",n))}},a.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},l.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=d.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},l.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(e){var r=n(46);t.exports=function(t){var n=t.xdomain,i=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!n||r))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!i&&o)return new XDomainRequest}catch(t){}if(!n)try{return new(e[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}}).call(e,n(0))},function(t,e,n){function r(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}var i=n(4),o=n(3);t.exports=r,o(r.prototype),r.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(t){var e=i.decodePacket(t,this.socket.binaryType);this.onPacket(e)},r.prototype.onPacket=function(t){this.emit("packet",t)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,i=t.indexOf("["),o=t.indexOf("]");-1!=i&&-1!=o&&(t=t.substring(0,i)+t.substring(i,o).replace(/:/g,";")+t.substring(o,t.length));for(var s=n.exec(t||""),a={},u=14;u--;)a[r[u]]=s[u]||"";return-1!=i&&-1!=o&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e,n){(function(e){function n(t){return r&&e.Buffer.isBuffer(t)||i&&(t instanceof e.ArrayBuffer||o(t))}t.exports=n;var r="function"==typeof e.Buffer&&"function"==typeof e.Buffer.isBuffer,i="function"==typeof e.ArrayBuffer,o=function(){return i&&"function"==typeof e.ArrayBuffer.isView?e.ArrayBuffer.isView:function(t){return t.buffer instanceof e.ArrayBuffer}}()}).call(e,n(0))},function(t,e,n){function r(t,e){if(!(this instanceof r))return new r(t,e);t&&"object"==typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new h({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}var i=n(44),o=n(20),s=n(3),a=n(8),u=n(21),c=n(22),l=n(1)("socket.io-client:manager"),f=n(19),h=n(63),p=Object.prototype.hasOwnProperty;t.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)p.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},r.prototype.updateSocketIds=function(){for(var t in this.nsps)p.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},r.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},s(r.prototype),r.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},r.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},r.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(t,e){if(l("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;l("opening %s",this.uri),this.engine=i(this.uri,this.opts);var n=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var o=u(n,"open",function(){r.onopen(),t&&t()}),s=u(n,"error",function(e){if(l("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else r.maybeReconnectOnOpen()});if(!1!==this._timeout){var a=this._timeout;l("connect attempt will timeout after %d",a);var c=setTimeout(function(){l("connect attempt timed out after %d",a),o.destroy(),n.close(),n.emit("error","timeout"),r.emitAll("connect_timeout",a)},a);this.subs.push({destroy:function(){clearTimeout(c)}})}return this.subs.push(o),this.subs.push(s),this},r.prototype.onopen=function(){l("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(u(t,"data",c(this,"ondata"))),this.subs.push(u(t,"ping",c(this,"onping"))),this.subs.push(u(t,"pong",c(this,"onpong"))),this.subs.push(u(t,"error",c(this,"onerror"))),this.subs.push(u(t,"close",c(this,"onclose"))),this.subs.push(u(this.decoder,"decoded",c(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(t){this.decoder.add(t)},r.prototype.ondecoded=function(t){this.emit("packet",t)},r.prototype.onerror=function(t){l("error",t),this.emitAll("error",t)},r.prototype.socket=function(t,e){function n(){~f(i.connecting,r)||i.connecting.push(r)}var r=this.nsps[t];if(!r){r=new o(this,t,e),this.nsps[t]=r;var i=this;r.on("connecting",n),r.on("connect",function(){r.id=i.generateId(t)}),this.autoConnect&&n()}return r},r.prototype.destroy=function(t){var e=f(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},r.prototype.packet=function(t){l("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(n){for(var r=0;r<n.length;r++)e.engine.write(n[r],t.options);e.encoding=!1,e.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},r.prototype.cleanup=function(){l("cleanup");for(var t=this.subs.length,e=0;e<t;e++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){l("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(t){l("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();l("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(l("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(l("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(l("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){(function(t){function r(e){var n=!1,r=!1,a=!1!==e.jsonp;if(t.location){var u="https:"===location.protocol,c=location.port;c||(c=u?443:80),n=e.hostname!==location.hostname||c!==e.port,r=e.secure!==u}if(e.xdomain=n,e.xscheme=r,"open"in new i(e)&&!e.forceJSONP)return new o(e);if(!a)throw new Error("JSONP disabled");return new s(e)}var i=n(10),o=n(47),s=n(59),a=n(60);e.polling=r,e.websocket=a}).call(e,n(0))},function(t,e,n){function r(t){var e=t&&t.forceBase64;l&&!e||(this.supportsBinary=!1),i.call(this,t)}var i=n(11),o=n(6),s=n(4),a=n(7),u=n(18),c=n(1)("engine.io-client:polling");t.exports=r;var l=function(){return null!=new(n(10))({xdomain:!1}).responseType}();a(r,i),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(t){function e(){c("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){c("pre-pause polling complete"),--r||e()})),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",function(){c("pre-pause writing complete"),--r||e()}))}else e()},r.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(t){var e=this;c("polling got data %s",t);var n=function(t,n,r){if("opening"===e.readyState&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)};s.decodePayload(t,this.socket.binaryType,n),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function t(){c("writing close packet"),e.write([{type:"close"}])}var e=this;"open"===this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},r.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};s.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=u()),this.supportsBinary||t.sid||(t.b64=1),t=o.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){(function(e){function r(t){if(!t||"object"!=typeof t)return!1;if(i(t)){for(var n=0,o=t.length;n<o;n++)if(r(t[n]))return!0;return!1}if("function"==typeof e&&e.isBuffer&&e.isBuffer(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||s&&t instanceof Blob||a&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return r(t.toJSON(),!0);for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)&&r(t[u]))return!0;return!1}var i=n(9),o=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);t.exports=r}).call(e,n(49).Buffer)},function(t,e,n){"use strict";function r(t){var e="";do{e=a[t%u]+e,t=Math.floor(t/u)}while(t>0);return e}function i(t){var e=0;for(f=0;f<t.length;f++)e=e*u+c[t.charAt(f)];return e}function o(){var t=r(+new Date);return t!==s?(l=0,s=t):t+"."+r(l++)}for(var s,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),u=64,c={},l=0,f=0;f<u;f++)c[a[f]]=f;o.encode=r,o.decode=i,t.exports=o},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e,n){function r(t,e,n){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}var i=n(8),o=n(3),s=n(62),a=n(21),u=n(22),c=n(1)("socket.io-client:socket"),l=n(6),f=n(17);t.exports=r;var h={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=o.prototype.emit;o(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[a(t,"open",u(this,"onopen")),a(t,"packet",u(this,"onpacket")),a(t,"close",u(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},r.prototype.send=function(){var t=s(arguments);return t.unshift("message"),this.emit.apply(this,t),this},r.prototype.emit=function(t){if(h.hasOwnProperty(t))return p.apply(this,arguments),this;var e=s(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:f(e))?i.BINARY_EVENT:i.EVENT,data:e};return n.options={},n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},r.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},r.prototype.onopen=function(){if(c("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?l.encode(this.query):this.query;c("sending connect packet with query %s",t),this.packet({type:i.CONNECT,query:t})}else this.packet({type:i.CONNECT})},r.prototype.onclose=function(t){c("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},r.prototype.onpacket=function(t){var e=t.nsp===this.nsp,n=t.type===i.ERROR&&"/"===t.nsp;if(e||n)switch(t.type){case i.CONNECT:this.onconnect();break;case i.EVENT:case i.BINARY_EVENT:this.onevent(t);break;case i.ACK:case i.BINARY_ACK:this.onack(t);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",t.data)}},r.prototype.onevent=function(t){var e=t.data||[];c("emitting event %j",e),null!=t.id&&(c("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?p.apply(this,e):this.receiveBuffer.push(e)},r.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var r=s(arguments);c("sending ack %j",r),e.packet({type:f(r)?i.BINARY_ACK:i.ACK,id:t,data:r})}}},r.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(c("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):c("bad ack %s",t.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)p.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(t){return this.flags.compress=t,this},r.prototype.binary=function(t){return this.flags.binary=t,this}},function(t,e){function n(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}t.exports=n},function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},function(t,e,n){t.exports=n(24)},function(t,e,n){function r(t){t.html5Mode({enabled:!0,requireBase:!1})}n(25),n(27),n(29),n(31),window.angular.module("BrowserSync",["bsHistory","bsClients","bsDisconnect","bsNotify","bsSocket","bsStore","ngRoute","ngTouch","ngSanitize"]).config(["$locationProvider",r]);n(33),n(34),n(35),n(36),n(37),n(64),n(65),n(66),n(69),n(70),n(72)},function(t,e,n){n(26),t.exports=angular},function(t,e){/**
 * @license AngularJS v1.4.14
 * (c) 2010-2015 Google, Inc. http://angularjs.org
 * License: MIT
 */
!function(t,e,n){"use strict";function r(t,e){return e=e||Error,function(){var n,r,i=arguments,o=i[0],s="["+(t?t+":":"")+o+"] ",a=i[1];for(s+=a.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1),n=e+2;return n<i.length?$t(i[n]):t}),s+="\nhttp://errors.angularjs.org/1.4.14/"+(t?t+"/":"")+o,r=2,n="?";r<i.length;r++,n="&")s+=n+"p"+(r-2)+"="+encodeURIComponent($t(i[r]));return new e(s)}}function i(t){if(null==t||T(t))return!1;if(qr(t)||C(t)||Rr&&t instanceof Rr)return!0;var e="length"in Object(t)&&t.length;return E(e)&&(e>=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function o(t,e,n){var r,s;if(t)if(S(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(qr(t)||i(t)){var a="object"!=typeof t;for(r=0,s=t.length;r<s;r++)(a||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==o)t.forEach(e,n,t);else if(x(t))for(r in t)e.call(n,t[r],r,t);else if("function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else for(r in t)kr.call(t,r)&&e.call(n,t[r],r,t);return t}function s(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function a(t){return function(e,n){t(n,e)}}function u(){return++Fr}function c(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function l(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var s=e[i];if(w(s)||S(s))for(var a=Object.keys(s),u=0,f=a.length;u<f;u++){var h=a[u],p=s[h];n&&w(p)?k(p)?t[h]=new Date(p.valueOf()):A(p)?t[h]=new RegExp(p):p.nodeName?t[h]=p.cloneNode(!0):j(p)?t[h]=p.clone():(w(t[h])||(t[h]=qr(p)?[]:{}),l(t[h],[p],!0)):t[h]=p}}return c(t,r),t}function f(t){return l(t,Pr.call(arguments,1),!1)}function h(t){return l(t,Pr.call(arguments,1),!0)}function p(t){return parseInt(t,10)}function d(t,e){return f(Object.create(t),e)}function g(){}function v(t){return t}function m(t){return function(){return t}}function $(t){return S(t.toString)&&t.toString!==jr}function y(t){return void 0===t}function b(t){return void 0!==t}function w(t){return null!==t&&"object"==typeof t}function x(t){return null!==t&&"object"==typeof t&&!Dr(t)}function C(t){return"string"==typeof t}function E(t){return"number"==typeof t}function k(t){return"[object Date]"===jr.call(t)}function S(t){return"function"==typeof t}function A(t){return"[object RegExp]"===jr.call(t)}function T(t){return t&&t.window===t}function O(t){return t&&t.$evalAsync&&t.$watch}function R(t){return"[object File]"===jr.call(t)}function M(t){return"[object FormData]"===jr.call(t)}function _(t){return"[object Blob]"===jr.call(t)}function P(t){return"boolean"==typeof t}function B(t){return t&&S(t.then)}function N(t){return t&&E(t.length)&&Lr.test(jr.call(t))}function j(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function D(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function I(t){return Er(t.nodeName||t[0]&&t[0].nodeName)}function U(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function F(t,e){function n(t,e){var n,i=e.$$hashKey;if(qr(t))for(var o=0,s=t.length;o<s;o++)e.push(r(t[o]));else if(x(t))for(n in t)e[n]=r(t[n]);else if(t&&"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(e[n]=r(t[n]));else for(n in t)kr.call(t,n)&&(e[n]=r(t[n]));return c(e,i),e}function r(t){if(!w(t))return t;var e=i.indexOf(t);if(-1!==e)return s[e];if(T(t)||O(t))throw Ir("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r,o=!1;return qr(t)?(r=[],o=!0):N(t)?r=new t.constructor(t):k(t)?r=new Date(t.getTime()):A(t)?(r=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]),r.lastIndex=t.lastIndex):_(t)?r=new t.constructor([t],{type:t.type}):S(t.cloneNode)?r=t.cloneNode(!0):(r=Object.create(Dr(t)),o=!0),i.push(t),s.push(r),o?n(t,r):r}var i=[],s=[];if(e){if(N(e))throw Ir("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw Ir("cpi","Can't copy! Source and destination are identical.");return qr(e)?e.length=0:o(e,function(t,n){"$$hashKey"!==n&&delete e[n]}),i.push(t),s.push(e),n(t,e)}return r(t)}function V(t,e){if(qr(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(w(t)){e=e||{};for(var i in t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i])}return e||t}function q(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var n,r,i,o=typeof t,s=typeof e;if(o==s&&"object"==o){if(!qr(t)){if(k(t))return!!k(e)&&q(t.getTime(),e.getTime());if(A(t))return!!A(e)&&t.toString()==e.toString();if(O(t)||O(e)||T(t)||T(e)||qr(e)||k(e)||A(e))return!1;i=gt();for(r in t)if("$"!==r.charAt(0)&&!S(t[r])){if(!q(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&b(e[r])&&!S(e[r]))return!1;return!0}if(!qr(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!q(t[r],e[r]))return!1;return!0}}return!1}function L(t,e,n){return t.concat(Pr.call(e,n))}function H(t,e){return Pr.call(t,e||0)}function z(t,e){var n=arguments.length>2?H(arguments,2):[];return!S(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,L(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Y(t,r){var i=r;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=n:T(r)?i="$WINDOW":r&&e===r?i="$DOCUMENT":O(r)&&(i="$SCOPE"),i}function W(t,e){return y(t)?n:(E(e)||(e=e?2:null),JSON.stringify(t,Y,e))}function X(t){return C(t)?JSON.parse(t):t}function J(t,e){t=t.replace(Xr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function G(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function K(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return G(t,n*(J(e,r)-r))}function Z(t){t=Rr(t).clone();try{t.empty()}catch(t){}var e=Rr("<div>").append(t).html();try{return t[0].nodeType===Qr?Er(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Er(e)})}catch(t){return Er(e)}}function Q(t){try{return decodeURIComponent(t)}catch(t){}}function tt(t){var e={};return o((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),i=t.substring(n+1)),r=Q(r),b(r)&&(i=!b(i)||Q(i),kr.call(e,r)?qr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function et(t){var e=[];return o(t,function(t,n){qr(t)?o(t,function(t){e.push(rt(n,!0)+(!0===t?"":"="+rt(t,!0)))}):e.push(rt(n,!0)+(!0===t?"":"="+rt(t,!0)))}),e.length?e.join("&"):""}function nt(t){return rt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function rt(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function it(t,e){var n,r,i=Jr.length;for(r=0;r<i;++r)if(n=Jr[r]+e,C(n=t.getAttribute(n)))return n;return null}function ot(t,e){var n,r,i={};o(Jr,function(e){var i=e+"app";!n&&t.hasAttribute&&t.hasAttribute(i)&&(n=t,r=t.getAttribute(i))}),o(Jr,function(e){var i,o=e+"app";!n&&(i=t.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))}),n&&(i.strictDi=null!==it(n,"strict-di"),e(n,r?[r]:[],i))}function st(n,r,i){w(i)||(i={}),i=f({strictDi:!1},i);var s=function(){if(n=Rr(n),n.injector()){var t=n[0]===e?"document":Z(n);throw Ir("btstrpd","App already bootstrapped with this element '{0}'",t.replace(/</,"&lt;").replace(/>/,"&gt;"))}r=r||[],r.unshift(["$provide",function(t){t.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),r.unshift("ng");var o=Qt(r,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),o},a=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;if(t&&a.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(a,"")),t&&!u.test(t.name))return s();t.name=t.name.replace(u,""),Ur.resumeBootstrap=function(t){return o(t,function(t){r.push(t)}),s()},S(Ur.resumeDeferredBootstrap)&&Ur.resumeDeferredBootstrap()}function at(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function ut(t){var e=Ur.element(t).injector();if(!e)throw Ir("test","no injector found for element argument to getTestability");return e.get("$$testability")}function ct(t,e){return e=e||"_",t.replace(Gr,function(t,n){return(n?e:"")+t.toLowerCase()})}function lt(t,e,n){if(!t)throw Ir("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ft(t,e,n){return n&&qr(t)&&(t=t[t.length-1]),lt(S(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function ht(t,e){if("hasOwnProperty"===t)throw Ir("badname","hasOwnProperty is not a valid {0} name",e)}function pt(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,s=i.length,a=0;a<s;a++)r=i[a],t&&(t=(o=t)[r]);return!n&&S(t)?z(o,t):t}function dt(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=Rr(Pr.call(t,0,i))),e.push(n));return e||t}function gt(){return Object.create(null)}function vt(t){function e(t,e,n){return t[e]||(t[e]=n())}var n=r("$injector"),i=r("ng"),o=e(t,"angular",Object);return o.$$minErr=o.$$minErr||r,e(o,"module",function(){var t={};return function(r,o,s){return function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)}(r,"module"),o&&t.hasOwnProperty(r)&&(t[r]=null),e(t,r,function(){function t(t,e,n,r){return r||(r=i),function(){return r[n||"push"]([t,e,arguments]),l}}function e(t,e){return function(n,o){return o&&S(o)&&(o.$$moduleName=r),i.push([t,e,arguments]),l}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var i=[],a=[],u=[],c=t("$injector","invoke","push",a),l={_invokeQueue:i,_configBlocks:a,_runBlocks:u,requires:o,name:r,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:e("$provide","decorator"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:c,run:function(t){return u.push(t),this}};return s&&c(s),l})}})}function mt(t){var e=[];return JSON.stringify(t,function(t,n){if(n=Y(t,n),w(n)){if(e.indexOf(n)>=0)return"...";e.push(n)}return n})}function $t(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):y(t)?"undefined":"string"!=typeof t?mt(t):t}function yt(){return++oi}function bt(t){return t.replace(ui,function(t,e,n,r){return r?n.toUpperCase():n}).replace(ci,"Moz$1")}function wt(t){return!pi.test(t)}function xt(t){var e=t.nodeType;return e===Zr||!e||e===ei}function Ct(t){for(var e in ii[t.ng339])return!0;return!1}function Et(t,e){var n,r,i,s,a=e.createDocumentFragment(),u=[];if(wt(t))u.push(e.createTextNode(t));else{for(n=n||a.appendChild(e.createElement("div")),r=(di.exec(t)||["",""])[1].toLowerCase(),i=vi[r]||vi._default,n.innerHTML=i[1]+t.replace(gi,"<$1></$2>")+i[2],s=i[0];s--;)n=n.lastChild;u=L(u,n.childNodes),n=a.firstChild,n.textContent=""}return a.textContent="",a.innerHTML="",o(u,function(t){a.appendChild(t)}),a}function kt(t,n){n=n||e;var r;return(r=hi.exec(t))?[n.createElement(r[1])]:(r=Et(t,n))?r.childNodes:[]}function St(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function At(t){if(t instanceof At)return t;var e;if(C(t)&&(t=Hr(t),e=!0),!(this instanceof At)){if(e&&"<"!=t.charAt(0))throw fi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new At(t)}e?Dt(this,kt(t)):Dt(this,t)}function Tt(t){return t.cloneNode(!0)}function Ot(t,e){if(e||Mt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r<i;r++)Mt(n[r])}function Rt(t,e,n,r){if(b(r))throw fi("offargs","jqLite#off() does not support the `selector` argument");var i=_t(t),s=i&&i.events,a=i&&i.handle;if(a)if(e){var u=function(e){var r=s[e];b(n)&&U(r||[],n),b(n)&&r&&r.length>0||(ai(t,e,a),delete s[e])};o(e.split(" "),function(t){u(t),li[t]&&u(li[t])})}else for(e in s)"$destroy"!==e&&ai(t,e,a),delete s[e]}function Mt(t,e){var r=t.ng339,i=r&&ii[r];if(i){if(e)return void delete i.data[e];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Rt(t)),delete ii[r],t.ng339=n}}function _t(t,e){var r=t.ng339,i=r&&ii[r];return e&&!i&&(t.ng339=r=yt(),i=ii[r]={events:{},data:{},handle:n}),i}function Pt(t,e,n){if(xt(t)){var r=b(n),i=!r&&e&&!w(e),o=!e,s=_t(t,!i),a=s&&s.data;if(r)a[e]=n;else{if(o)return a;if(i)return a&&a[e];f(a,e)}}}function Bt(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function Nt(t,e){e&&t.setAttribute&&o(e.split(" "),function(e){t.setAttribute("class",Hr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Hr(e)+" "," ")))})}function jt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(e.split(" "),function(t){t=Hr(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",Hr(n))}}function Dt(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function It(t,e){return Ut(t,"$"+(e||"ngController")+"Controller")}function Ut(t,e,n){t.nodeType==ei&&(t=t.documentElement);for(var r=qr(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(b(n=Rr.data(t,r[i])))return n;t=t.parentNode||t.nodeType===ni&&t.host}}function Ft(t){for(Ot(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Vt(t,e){e||Ot(t);var n=t.parentNode;n&&n.removeChild(t)}function qt(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):Rr(n).on("load",e)}function Lt(t,e){var n=yi[e.toLowerCase()];return n&&bi[I(t)]&&n}function Ht(t){return wi[t]}function zt(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],o=i?i.length:0;if(o){if(y(n.immediatePropagationStopped)){var s=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),s&&s.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var a=i.specialHandlerWrapper||Yt;o>1&&(i=V(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||a(t,n,i[u])}};return n.elem=t,n}function Yt(t,e,n){n.call(t,e)}function Wt(t,e,n){var r=e.relatedTarget;r&&(r===t||mi.call(t,r))||n.call(t,e)}function Xt(){this.$get=function(){return f(At,{hasClass:function(t,e){return t.attr&&(t=t[0]),Bt(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),jt(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Nt(t,e)}})}}function Jt(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||u)():r+":"+t}function Gt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}o(t,this.put,this)}function Kt(t){var e=t.toString().replace(Si,""),n=e.match(Ci);return n?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Zt(t,e,n){var r,i,s,a;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw C(n)&&n||(n=t.name||Kt(t)),Ai("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=t.toString().replace(Si,""),s=i.match(Ci),o(s[1].split(Ei),function(t){t.replace(ki,function(t,e,n){r.push(n)})})}t.$inject=r}}else qr(t)?(a=t.length-1,ft(t[a],"fn"),r=t.slice(0,a)):ft(t,"fn",!0);return r}function Qt(t,e){function r(t){return function(e,n){if(!w(e))return t(e,n);o(e,a(t))}}function i(t,e){if(ht(t,"service"),(S(e)||qr(e))&&(e=E.instantiate(e)),!e.$get)throw Ai("pget","Provider '{0}' must define $get factory method.",t);return x[t+v]=e}function s(t,e){return function(){var n=A.invoke(e,this);if(y(n))throw Ai("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function u(t,e,n){return i(t,{$get:!1!==n?s(t,e):e})}function c(t,e){return u(t,["$injector",function(t){return t.instantiate(e)}])}function l(t,e){return u(t,m(e),!1)}function f(t,e){ht(t,"constant"),x[t]=e,k[t]=e}function h(t,e){var n=E.get(t+v),r=n.$get;n.$get=function(){var t=A.invoke(r,n);return A.invoke(e,null,{$delegate:t})}}function p(t){lt(y(t)||qr(t),"modulesToLoad","not an array");var e,n=[];return o(t,function(t){function r(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=E.get(r[0]);i[r[1]].apply(i,r[2])}}if(!b.get(t)){b.put(t,!0);try{C(t)?(e=_r(t),n=n.concat(p(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):S(t)?n.push(E.invoke(t)):qr(t)?n.push(E.invoke(t)):ft(t,"module")}catch(e){throw qr(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1==e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Ai("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}}),n}function d(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===g)throw Ai("cdep","Circular dependency found: {0}",e+" <- "+$.join(" <- "));return t[e]}try{return $.unshift(e),t[e]=g,t[e]=n(e,r)}catch(n){throw t[e]===g&&delete t[e],n}finally{$.shift()}}function i(t,n,i,o){"string"==typeof i&&(o=i,i=null);var s,a,u,c=[],l=Qt.$$annotate(t,e,o);for(a=0,s=l.length;a<s;a++){if("string"!=typeof(u=l[a]))throw Ai("itkn","Incorrect injection token! Expected service name as string, got {0}",u);c.push(i&&i.hasOwnProperty(u)?i[u]:r(u,o))}return qr(t)&&(t=t[s]),t.apply(n,c)}function o(t,e,n){var r=Object.create((qr(t)?t[t.length-1]:t).prototype||null),o=i(t,r,e,n);return w(o)||S(o)?o:r}return{invoke:i,instantiate:o,get:r,annotate:Qt.$$annotate,has:function(e){return x.hasOwnProperty(e+v)||t.hasOwnProperty(e)}}}e=!0===e;var g={},v="Provider",$=[],b=new Gt([],!0),x={$provide:{provider:r(i),factory:r(u),service:r(c),value:r(l),constant:r(f),decorator:h}},E=x.$injector=d(x,function(t,e){throw Ur.isString(e)&&$.push(e),Ai("unpr","Unknown provider: {0}",$.join(" <- "))}),k={},A=k.$injector=d(k,function(t,e){var r=E.get(t+v,e);return A.invoke(r.$get,r,n,t)});return o(p(t),function(t){t&&A.invoke(t)}),A}function te(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return Array.prototype.some.call(t,function(t){if("a"===I(t))return e=t,!0}),e}function o(){var t=a.yOffset;if(S(t))t=t();else if(j(t)){var n=t[0],r=e.getComputedStyle(n);t="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else E(t)||(t=0);return t}function s(t){if(t){t.scrollIntoView();var n=o();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function a(t){t=C(t)?t:n.hash();var e;t?(e=u.getElementById(t))?s(e):(e=i(u.getElementsByName(t)))?s(e):"top"===t&&s(null):s(null)}var u=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){t===e&&""===t||qt(function(){r.$evalAsync(a)})}),a}]}function ee(t,e){return t||e?t?e?(qr(t)&&(t=t.join(" ")),qr(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function ne(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===Oi)return n}}function re(t){C(t)&&(t=t.split(" "));var e=gt();return o(t,function(t){t.length&&(e[t]=!0)}),e}function ie(t){return w(t)?t:{}}function oe(t,e,n,r){function i(t){try{t.apply(null,H(arguments,1))}finally{if(0===--$)for(;b.length;)try{b.pop()()}catch(t){n.error(t)}}}function s(t){var e=t.indexOf("#");return-1===e?"":t.substr(e)}function a(){k=null,c(),l()}function u(){try{return p.state}catch(t){}}function c(){w=u(),w=y(w)?null:w,q(w,T)&&(w=T),T=w}function l(){C===f.url()&&x===w||(C=f.url(),x=w,o(S,function(t){t(f.url(),w)}))}var f=this,h=(e[0],t.location),p=t.history,d=t.setTimeout,v=t.clearTimeout,m={};f.isMock=!1;var $=0,b=[];f.$$completeOutstandingRequest=i,f.$$incOutstandingRequestCount=function(){$++},f.notifyWhenNoOutstandingRequests=function(t){0===$?t():b.push(t)};var w,x,C=h.href,E=e.find("base"),k=null;c(),x=w,f.url=function(e,n,i){if(y(i)&&(i=null),h!==t.location&&(h=t.location),p!==t.history&&(p=t.history),e){var o=x===i;if(C===e&&(!r.history||o))return f;var a=C&&je(C)===je(e);return C=e,x=i,!r.history||a&&o?(a&&!k||(k=e),n?h.replace(e):a?h.hash=s(e):h.href=e,h.href!==e&&(k=e)):(p[n?"replaceState":"pushState"](i,"",e),c(),x=w),f}return k||h.href.replace(/%27/g,"'")},f.state=function(){return w};var S=[],A=!1,T=null;f.onUrlChange=function(e){return A||(r.history&&Rr(t).on("popstate",a),Rr(t).on("hashchange",a),A=!0),S.push(e),e},f.$$applicationDestroyed=function(){Rr(t).off("hashchange popstate",a)},f.$$checkUrlChange=l,f.baseHref=function(){var t=E.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},f.defer=function(t,e){var n;return $++,n=d(function(){delete m[n],i(t)},e||0),m[n]=!0,n},f.defer.cancel=function(t){return!!m[t]&&(delete m[t],v(t),i(g),!0)}}function se(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new oe(t,r,e,n)}]}function ae(){this.$get=function(){function t(t,n){function i(t){t!=h&&(p?p==t&&(p=t.n):p=t,o(t.n,t.p),o(t,h),h=t,h.n=null)}function o(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in e)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var s=0,a=f({},n,{id:t}),u=gt(),c=n&&n.capacity||Number.MAX_VALUE,l=gt(),h=null,p=null;return e[t]={put:function(t,e){if(!y(e)){if(c<Number.MAX_VALUE){i(l[t]||(l[t]={key:t}))}return t in u||s++,u[t]=e,s>c&&this.remove(p.key),e}},get:function(t){if(c<Number.MAX_VALUE){var e=l[t];if(!e)return;i(e)}return u[t]},remove:function(t){if(c<Number.MAX_VALUE){var e=l[t];if(!e)return;e==h&&(h=e.p),e==p&&(p=e.n),o(e.n,e.p),delete l[t]}t in u&&(delete u[t],s--)},removeAll:function(){u=gt(),s=0,l=gt(),h=p=null},destroy:function(){u=null,a=null,l=null,delete e[t]},info:function(){return f({},a,{size:s})}}}var e={};return t.info=function(){var t={};return o(e,function(e,n){t[n]=e.info()}),t},t.get=function(t){return e[t]},t}}function ue(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function ce(t,r){function i(t,e,n){var r=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,i=gt();return o(t,function(t,o){if(t in k)return void(i[o]=k[t]);var s=t.match(r);if(!s)throw ji("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,o,t,n?"controller bindings definition":"isolate scope definition");i[o]={mode:s[1][0],collection:"*"===s[2],optional:"?"===s[3],attrName:s[4]||o},s[4]&&(k[t]=i[o])}),i}function s(t,e){var n={isolateScope:null,bindToController:null};if(w(t.scope)&&(!0===t.bindToController?(n.bindToController=i(t.scope,e,!0),n.isolateScope={}):n.isolateScope=i(t.scope,e,!1)),w(t.bindToController)&&(n.bindToController=i(t.bindToController,e,!0)),w(n.bindToController)){var r=t.controller,o=t.controllerAs;if(!r)throw ji("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);if(!pe(r,o))throw ji("noident","Cannot bind to controller without identifier for directive '{0}'.",e)}return n}function u(t){var e=t.charAt(0);if(!e||e!==Er(e))throw ji("baddir","Directive name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw ji("baddir","Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}var c={},l="Directive",h=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,p=/(([\w\-]+)(?:\:([^;]+))?;?)/,$=D("ngSrc,ngSrcset,src,srcset"),x=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,E=/^(on[a-z]+|formaction)$/,k=gt();this.directive=function e(n,r){return ht(n,"directive"),C(n)?(u(n),lt(r,"directiveFactory"),c.hasOwnProperty(n)||(c[n]=[],t.factory(n+l,["$injector","$exceptionHandler",function(t,e){var r=[];return o(c[n],function(i,o){try{var s=t.invoke(i);S(s)?s={compile:m(s)}:!s.compile&&s.link&&(s.compile=m(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||n,s.require=s.require||s.controller&&s.name,s.restrict=s.restrict||"EA",s.$$moduleName=i.$$moduleName,r.push(s)}catch(t){e(t)}}),r}])),c[n].push(r)):o(n,a(e)),this},this.aHrefSanitizationWhitelist=function(t){return b(t)?(r.aHrefSanitizationWhitelist(t),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return b(t)?(r.imgSrcSanitizationWhitelist(t),this):r.imgSrcSanitizationWhitelist()};var A=!0;this.debugInfoEnabled=function(t){return b(t)?(A=t,this):A},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,r,i,a,u,m,k,T,R,M){function _(t,e){try{t.addClass(e)}catch(t){}}function B(t,n,r,i,o){t instanceof Rr||(t=Rr(t));for(var s=/\S+/,a=0,u=t.length;a<u;a++){var c=t[a];c.nodeType===Qr&&c.nodeValue.match(s)&&St(c,t[a]=e.createElement("span"))}var l=j(t,n,t,r,i,o);B.$$addScopeClass(t);var f=null;return function(e,n,r){lt(e,"scope"),o&&o.needsNewScope&&(e=e.$parent.$new()),r=r||{};var i=r.parentBoundTranscludeFn,s=r.transcludeControllers,a=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),f||(f=N(a));var u;if(u="html"!==f?Rr(et(f,Rr("<div>").append(t).html())):n?$i.clone.call(t):t,s)for(var c in s)u.data("$"+c+"Controller",s[c].instance);return B.$$addScopeInfo(u,e),n&&n(u,e),l&&l(e,u,u,i),u}}function N(t){var e=t&&t[0];return e&&"foreignobject"!==I(e)&&e.toString().match(/SVG/)?"svg":"html"}function j(t,e,r,i,o,s){function a(t,r,i,o){var s,a,u,c,l,f,h,p,v;if(d){var m=r.length;for(v=new Array(m),l=0;l<g.length;l+=3)h=g[l],v[h]=r[h]}else v=r;for(l=0,f=g.length;l<f;)u=v[g[l++]],s=g[l++],a=g[l++],s?(s.scope?(c=t.$new(),B.$$addScopeInfo(Rr(u),c)):c=t,p=s.transcludeOnThisElement?D(t,s.transclude,o):!s.templateOnThisElement&&o?o:!o&&e?D(t,e):null,s(a,c,u,i,p)):a&&a(t,u.childNodes,n,o)}for(var u,c,l,f,h,p,d,g=[],v=0;v<t.length;v++)u=new ut,c=F(t[v],[],u,0===v?i:n,o),l=c.length?z(c,t[v],u,e,r,null,[],[],s):null,l&&l.scope&&B.$$addScopeClass(u.$$element),h=l&&l.terminal||!(f=t[v].childNodes)||!f.length?null:j(f,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||h)&&(g.push(v,l,h),p=!0,d=d||l),s=null;return p?a:null}function D(t,e,n){return function(r,i,o,s,a){return r||(r=t.$new(!1,a),r.$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:s})}}function F(t,e,n,r,i){var o,s,a,u=t.nodeType,c=n.$attr;switch(u){case Zr:s=I(t),W(e,le(s),"E",r,i);for(var l,f,d,g,v,m,$=t.attributes,y=0,b=$&&$.length;y<b;y++){var x=!1,E=!1;l=$[y],f=l.name,v=Hr(l.value),g=le(f),(m=dt.test(g))&&(f=f.replace(Di,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var k=g.match(vt);k&&X(k[1])&&(x=f,E=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),d=le(f.toLowerCase()),c[d]=f,!m&&n.hasOwnProperty(d)||(n[d]=v,Lt(t,d)&&(n[d]=!0)),rt(t,e,v,d,m),W(e,d,"A",r,i,x,E)}if("input"===s&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off"),a=t.className,w(a)&&(a=a.animVal),C(a)&&""!==a)for(;o=p.exec(a);)d=le(o[2]),W(e,d,"C",r,i)&&(n[d]=Hr(o[3])),a=a.substr(o.index+o[0].length);break;case Qr:if(11===Or)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===Qr;)t.nodeValue=t.nodeValue+t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);tt(e,t.nodeValue);break;case ti:try{o=h.exec(t.nodeValue),o&&(d=le(o[1]),W(e,d,"M",r,i)&&(n[d]=Hr(o[2])))}catch(t){}}return e.sort(K),e}function V(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw ji("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType==Zr&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return Rr(r)}function L(t,e,n){return function(r,i,o,s,a){return i=V(i[0],e,n),t(r,i,o,s,a)}}function z(t,r,o,s,a,u,c,l,f){function h(t,e,n,r){t&&(n&&(t=L(t,n,r)),t.require=v.require,t.directiveName=$,(R===v||v.$$isolateScope)&&(t=ot(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=L(e,n,r)),e.require=v.require,e.directiveName=$,(R===v||v.$$isolateScope)&&(e=ot(e,{isolateScope:!0})),l.push(e))}function p(t,e,n,r){var i;if(C(e)){var o=e.match(x),s=e.substring(o[0].length),a=o[1]||o[3],u="?"===o[2];if("^^"===a?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var c="$"+s+"Controller";i=a?n.inheritedData(c):n.data(c)}if(!i&&!u)throw ji("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(qr(e)){i=[];for(var l=0,f=e.length;l<f;l++)i[l]=p(t,e[l],n,r)}return i||null}function d(t,e,n,r,i,o){var s=gt();for(var a in r){var u=r[a],c={$scope:u===R||u.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},l=u.controller;"@"==l&&(l=e[u.name]);var f=m(l,c,!0,u.controllerAs);s[u.name]=f,t.data("$"+u.name+"Controller",f.instance)}return s}function g(t,e,i,s,a){function u(t,e,r){var i;return O(t)||(r=e,e=t,t=n),j&&(i=v),r||(r=j?$.parent():$),a(t,e,i,r,_)}var f,h,g,v,m,$,y,b,w;r===i?(y=o,$=o.$$element):($=Rr(i),y=new ut($,o)),g=e,R?h=e.$new(!0):A&&(g=e.$parent),a&&(m=u,m.$$boundTransclude=a),T&&(v=d($,y,m,T,h,e)),R&&(B.$$addScopeInfo($,h,!0,!(M&&(M===R||M===R.$$originalDirective))),B.$$addScopeClass($,!0),h.$$isolateBindings=R.$$isolateBindings,(b=at(e,y,h,h.$$isolateBindings,R))&&h.$on("$destroy",b));for(var x in v){var C=T[x],E=v[x],k=C.$$bindings.bindToController;E.identifier&&k&&(w=at(g,y,E.instance,k,C));var S=E();S!==E.instance&&(E.instance=S,$.data("$"+C.name+"Controller",S),w&&w(),w=at(g,y,E.instance,k,C))}for(q=0,z=c.length;q<z;q++)f=c[q],st(f,f.isolateScope?h:e,$,y,f.require&&p(f.directiveName,f.require,$,v),m);var _=e;for(R&&(R.template||null===R.templateUrl)&&(_=h),t&&t(_,i.childNodes,n,a),q=l.length-1;q>=0;q--)f=l[q],st(f,f.isolateScope?h:e,$,y,f.require&&p(f.directiveName,f.require,$,v),m)}f=f||{};for(var v,$,y,b,E,k=-Number.MAX_VALUE,A=f.newScopeDirective,T=f.controllerDirectives,R=f.newIsolateScopeDirective,M=f.templateDirective,_=f.nonTlbTranscludeDirective,P=!1,N=!1,j=f.hasElementTranscludeDirective,D=o.$$element=Rr(r),I=u,U=s,q=0,z=t.length;q<z;q++){v=t[q];var W=v.$$start,X=v.$$end;if(W&&(D=V(r,W,X)),y=n,k>v.priority)break;if((E=v.scope)&&(v.templateUrl||(w(E)?(Q("new/isolated scope",R||A,v,D),R=v):Q("new/isolated scope",R,v,D)),A=A||v),$=v.name,!v.templateUrl&&v.controller&&(E=v.controller,T=T||gt(),Q("'"+$+"' controller",T[$],v,D),T[$]=v),(E=v.transclude)&&(P=!0,v.$$tlb||(Q("transclusion",_,v,D),_=v),"element"==E?(j=!0,k=v.priority,y=D,D=o.$$element=Rr(e.createComment(" "+$+": "+o[$]+" ")),r=D[0],it(a,H(y),r),U=B(y,s,k,I&&I.name,{nonTlbTranscludeDirective:_})):(y=Rr(Tt(r)).contents(),D.empty(),U=B(y,s,n,n,{needsNewScope:v.$$isolateScope||v.$$newScope}))),v.template)if(N=!0,Q("template",M,v,D),M=v,E=S(v.template)?v.template(D,o):v.template,E=pt(E),v.replace){if(I=v,y=wt(E)?[]:he(et(v.templateNamespace,Hr(E))),r=y[0],1!=y.length||r.nodeType!==Zr)throw ji("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$,"");it(a,D,r);var K={$attr:{}},tt=F(r,[],K),nt=t.splice(q+1,t.length-(q+1));(R||A)&&Y(tt,R,A),t=t.concat(tt).concat(nt),J(o,K),z=t.length}else D.html(E);if(v.templateUrl)N=!0,Q("template",M,v,D),M=v,v.replace&&(I=v),g=G(t.splice(q,t.length-q),D,o,a,P&&U,c,l,{controllerDirectives:T,newScopeDirective:A!==v&&A,newIsolateScopeDirective:R,templateDirective:M,nonTlbTranscludeDirective:_}),z=t.length;else if(v.compile)try{b=v.compile(D,o,U),S(b)?h(null,b,W,X):b&&h(b.pre,b.post,W,X)}catch(t){i(t,Z(D))}v.terminal&&(g.terminal=!0,k=Math.max(k,v.priority))}return g.scope=A&&!0===A.scope,g.transcludeOnThisElement=P,g.templateOnThisElement=N,g.transclude=U,f.hasElementTranscludeDirective=j,g}function Y(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=d(t[r],{$$isolateScope:e,$$newScope:n})}function W(e,n,r,o,a,u,f){if(n===a)return null;var h=null;if(c.hasOwnProperty(n))for(var p,g=t.get(n+l),v=0,m=g.length;v<m;v++)try{if(p=g[v],(y(o)||o>p.priority)&&-1!=p.restrict.indexOf(r)){if(u&&(p=d(p,{$$start:u,$$end:f})),!p.$$bindings){var $=p.$$bindings=s(p,p.name);w($.isolateScope)&&(p.$$isolateBindings=$.isolateScope)}e.push(p),h=p}}catch(t){i(t)}return h}function X(e){if(c.hasOwnProperty(e))for(var n,r=t.get(e+l),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function J(t,e){var n=e.$attr,r=t.$attr,i=t.$$element;o(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),o(e,function(e,o){"class"==o?(_(i,e),t.class=(t.class?t.class+" ":"")+e):"style"==o?(i.attr("style",i.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==o.charAt(0)||t.hasOwnProperty(o)||(t[o]=e,r[o]=n[o])})}function G(t,e,n,r,i,s,u,c){var l,f,h=[],p=e[0],g=t.shift(),v=d(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),m=S(g.templateUrl)?g.templateUrl(e,n):g.templateUrl,$=g.templateNamespace;return e.empty(),a(m).then(function(a){var d,y,b,x;if(a=pt(a),g.replace){if(b=wt(a)?[]:he(et($,Hr(a))),d=b[0],1!=b.length||d.nodeType!==Zr)throw ji("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,m);y={$attr:{}},it(r,e,d);var C=F(d,[],y);w(g.scope)&&Y(C,!0),t=C.concat(t),J(n,y)}else d=p,e.html(a);for(t.unshift(v),l=z(t,d,n,i,e,g,s,u,c),o(r,function(t,n){t==d&&(r[n]=e[0])}),f=j(e[0].childNodes,i);h.length;){var E=h.shift(),k=h.shift(),S=h.shift(),A=h.shift(),T=e[0];if(!E.$$destroyed){if(k!==p){var O=k.className;c.hasElementTranscludeDirective&&g.replace||(T=Tt(d)),it(S,Rr(k),T),_(Rr(T),O)}x=l.transcludeOnThisElement?D(E,l.transclude,A):A,l(f,E,T,r,x)}}h=null}),function(t,e,n,r,i){var o=i;e.$$destroyed||(h?h.push(e,n,r,o):(l.transcludeOnThisElement&&(o=D(e,l.transclude,i)),l(f,e,n,r,o)))}}function K(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function Q(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw ji("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,Z(r))}function tt(t,e){var n=r(e,!0);n&&t.push({priority:0,compile:function(t){var e=t.parent(),r=!!e.length;return r&&B.$$addBindingClass(e),function(t,e){var i=e.parent();r||B.$$addBindingClass(i),B.$$addBindingInfo(i,n.expressions),t.$watch(n,function(t){e[0].nodeValue=t})}}})}function et(t,n){switch(t=Er(t||"html")){case"svg":case"math":var r=e.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function nt(t,e){if("srcdoc"==e)return T.HTML;var n=I(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?T.RESOURCE_URL:void 0}function rt(t,e,n,i,o){var s=nt(t,i);o=$[i]||o;var a=r(n,!0,s,o);if(a){if("multiple"===i&&"select"===I(t))throw ji("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Z(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){var c=u.$$observers||(u.$$observers=gt());if(E.test(i))throw ji("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var l=u[i];l!==n&&(a=l&&r(l,!0,s,o),n=l),a&&(u[i]=a(t),(c[i]||(c[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(a,function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function it(t,n,r){var i,o,s=n[0],a=n.length,u=s.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]==s){t[i++]=r;for(var c=i,l=c+a-1,f=t.length;c<f;c++,l++)l<f?t[c]=t[l]:delete t[c];t.length-=a-1,t.context===s&&(t.context=r);break}u&&u.replaceChild(r,s);var h=e.createDocumentFragment();h.appendChild(s),Rr.hasData(s)&&(Rr.data(r,Rr.data(s)),Mr?(Vr=!0,Mr.cleanData([s])):delete Rr.cache[s[Rr.expando]]);for(var p=1,d=n.length;p<d;p++){var g=n[p];Rr(g).remove(),h.appendChild(g),delete n[p]}n[0]=r,n.length=1}function ot(t,e){return f(function(){return t.apply(null,arguments)},t,e)}function st(t,e,n,r,o,s){try{t(e,n,r,o,s)}catch(t){i(t,Z(n))}}function at(t,e,n,i,s){var a=[];return o(i,function(i,o){var c,l,f,h,p=i.attrName,d=i.optional,v=i.mode;switch(v){case"@":d||kr.call(e,p)||(n[o]=e[p]=void 0),e.$observe(p,function(t){C(t)&&(n[o]=t)}),e.$$observers[p].$$scope=t,c=e[p],C(c)?n[o]=r(c)(t):P(c)&&(n[o]=c);break;case"=":if(!kr.call(e,p)){if(d)break;e[p]=void 0}if(d&&!e[p])break;l=u(e[p]),h=l.literal?q:function(t,e){return t===e||t!==t&&e!==e},f=l.assign||function(){throw c=n[o]=l(t),ji("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[p],p,s.name)},c=n[o]=l(t);var m=function(e){return h(e,n[o])||(h(e,c)?f(t,e=n[o]):n[o]=e),c=e};m.$stateful=!0;var $;$=i.collection?t.$watchCollection(e[p],m):t.$watch(u(e[p],m),null,l.literal),a.push($);break;case"&":if((l=e.hasOwnProperty(p)?u(e[p]):g)===g&&d)break;n[o]=function(e){return l(t,e)}}}),a.length&&function(){for(var t=0,e=a.length;t<e;++t)a[t]()}}var ut=function(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=e[i]}else this.$attr={};this.$$element=t};ut.prototype={$normalize:le,$addClass:function(t){t&&t.length>0&&R.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&R.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=fe(t,e);n&&n.length&&R.addClass(this.$$element,n);var r=fe(e,t);r&&r.length&&R.removeClass(this.$$element,r)},$set:function(t,e,n,r){var s,a=this.$$element[0],u=Lt(a,t),c=Ht(t),l=t;if(u?(this.$$element.prop(t,e),r=u):c&&(this[c]=e,l=c),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=ct(t,"-")),"a"===(s=I(this.$$element))&&"href"===t||"img"===s&&"src"===t)this[t]=e=M(e,"src"===t);else if("img"===s&&"srcset"===t&&b(e)){for(var f="",h=Hr(e),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,d=/\s/.test(h)?p:/(,)/,g=h.split(d),v=Math.floor(g.length/2),m=0;m<v;m++){var $=2*m;f+=M(Hr(g[$]),!0),f+=" "+Hr(g[$+1])}var w=Hr(g[2*m]).split(/\s/);f+=M(Hr(w[0]),!0),2===w.length&&(f+=" "+Hr(w[1])),this[t]=e=f}!1!==n&&(null===e||y(e)?this.$$element.removeAttr(r):this.$$element.attr(r,e));var x=this.$$observers;x&&o(x[l],function(t){try{t(e)}catch(t){i(t)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=gt()),i=r[t]||(r[t]=[]);return i.push(e),k.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||y(n[t])||e(n[t])}),function(){U(i,e)}}};var ft=r.startSymbol(),ht=r.endSymbol(),pt="{{"==ft&&"}}"==ht?v:function(t){return t.replace(/\{\{/g,ft).replace(/}}/g,ht)},dt=/^ngAttr[A-Z]/,vt=/^(.+)Start$/;return B.$$addBindingInfo=A?function(t,e){var n=t.data("$binding")||[];qr(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:g,B.$$addBindingClass=A?function(t){_(t,"ng-binding")}:g,B.$$addScopeInfo=A?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:g,B.$$addScopeClass=A?function(t,e){_(t,e?"ng-isolate-scope":"ng-scope")}:g,B}]}function le(t){return bt(t.replace(Di,""))}function fe(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var s=r[o],a=0;a<i.length;a++)if(s==i[a])continue t;n+=(n.length>0?" ":"")+s}return n}function he(t){t=Rr(t);var e=t.length;if(e<=1)return t;for(;e--;){t[e].nodeType===ti&&Br.call(t,e,1)}return t}function pe(t,e){if(e&&C(e))return e;if(C(t)){var n=Ui.exec(t);if(n)return n[3]}}function de(){var t={},e=!1;this.register=function(e,n){ht(e,"controller"),w(e)?f(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(i,o){function s(t,e,n,i){if(!t||!w(t.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e);t.$scope[e]=n}return function(r,a,u,c){var l,h,p,d;if(u=!0===u,c&&C(c)&&(d=c),C(r)){if(!(h=r.match(Ui)))throw Ii("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);p=h[1],d=d||h[3],r=t.hasOwnProperty(p)?t[p]:pt(a.$scope,p,!0)||(e?pt(o,p,!0):n),ft(r,p,!0)}if(u){var g=(qr(r)?r[r.length-1]:r).prototype;l=Object.create(g||null),d&&s(a,d,l,p||r.name);return f(function(){var t=i.invoke(r,l,a,p);return t!==l&&(w(t)||S(t))&&(l=t,d&&s(a,d,l,p||r.name)),l},{instance:l,identifier:d})}return l=i.instantiate(r,a,p),d&&s(a,d,l,p||r.name),l}}]}function ge(){this.$get=["$window",function(t){return Rr(t.document)}]}function ve(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function me(t){return w(t)?k(t)?t.toISOString():W(t):t}function $e(){this.$get=function(){return function(t){if(!t)return"";var e=[];return s(t,function(t,n){null===t||y(t)||(qr(t)?o(t,function(t,r){e.push(rt(n)+"="+rt(me(t)))}):e.push(rt(n)+"="+rt(me(t))))}),e.join("&")}}}function ye(){this.$get=function(){return function(t){function e(t,r,i){null===t||y(t)||(qr(t)?o(t,function(t,n){e(t,r+"["+(w(t)?n:"")+"]")}):w(t)&&!k(t)?s(t,function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))}):n.push(rt(r)+"="+rt(me(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function be(t,e){if(C(t)){var n=t.replace(zi,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(Vi)||we(n))&&(t=X(n))}}return t}function we(t){var e=t.match(Li);return e&&Hi[e[0]].test(t)}function xe(t){function e(t,e){t&&(r[t]=r[t]?r[t]+", "+e:e)}var n,r=gt();return C(t)?o(t.split("\n"),function(t){n=t.indexOf(":"),e(Er(Hr(t.substr(0,n))),Hr(t.substr(n+1)))}):w(t)&&o(t,function(t,n){e(Er(n),Hr(t))}),r}function Ce(t){var e;return function(n){if(e||(e=xe(t)),n){var r=e[Er(n)];return void 0===r&&(r=null),r}return e}}function Ee(t,e,n,r){return S(r)?r(t,e,n):(o(r,function(r){t=r(t,e,n)}),t)}function ke(t){return 200<=t&&t<300}function Se(){var t=this.defaults={transformResponse:[be],transformRequest:[function(t){return!w(t)||R(t)||_(t)||M(t)?t:W(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:V(qi),put:V(qi),patch:V(qi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},e=!1;this.useApplyAsync=function(t){return b(t)?(e=!!t,this):e};var i=!0;this.useLegacyPromiseExtensions=function(t){return b(t)?(i=!!t,this):i};var s=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,u,c,l,h,p){function d(e){function s(t){var e=f({},t);return e.data=Ee(t.data,t.headers,t.status,u.transformResponse),ke(t.status)?e:h.reject(e)}function a(t,e){var n,r={};return o(t,function(t,i){S(t)?null!=(n=t(e))&&(r[i]=n):r[i]=t}),r}if(!Ur.isObject(e))throw r("$http")("badreq","Http request configuration must be an object.  Received: {0}",e);if(!C(e.url))throw r("$http")("badreq","Http request configuration url must be a string.  Received: {0}",e.url);var u=f({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);u.headers=function(e){var n,r,i,o=t.headers,s=f({},e.headers);o=f({},o.common,o[Er(e.method)]);t:for(n in o){r=Er(n);for(i in s)if(Er(i)===r)continue t;s[n]=o[n]}return a(s,V(e))}(e),u.method=Sr(u.method),u.paramSerializer=C(u.paramSerializer)?p.get(u.paramSerializer):u.paramSerializer;var c=function(e){var r=e.headers,i=Ee(e.data,Ce(r),n,e.transformRequest);return y(i)&&o(r,function(t,e){"content-type"===Er(e)&&delete r[e]}),y(e.withCredentials)&&!y(t.withCredentials)&&(e.withCredentials=t.withCredentials),g(e,i).then(s,s)},l=[c,n],d=h.when(u);for(o($,function(t){(t.request||t.requestError)&&l.unshift(t.request,t.requestError),(t.response||t.responseError)&&l.push(t.response,t.responseError)});l.length;){var v=l.shift(),m=l.shift();d=d.then(v,m)}return i?(d.success=function(t){return ft(t,"fn"),d.then(function(e){t(e.data,e.status,e.headers,u)}),d},d.error=function(t){return ft(t,"fn"),d.then(null,function(e){t(e.data,e.status,e.headers,u)}),d}):(d.success=Wi("success"),d.error=Wi("error")),d}function g(r,i){function o(t,n,r,i){function o(){s(n,t,r,i)}p&&(ke(t)?p.put(E,[t,n,xe(r),i]):p.remove(E)),e?l.$applyAsync(o):(o(),l.$$phase||l.$apply())}function s(t,e,n,i){e=e>=-1?e:0,(ke(e)?$.resolve:$.reject)({data:t,status:e,headers:Ce(n),config:r,statusText:i})}function c(t){s(t.data,t.status,V(t.headers()),t.statusText)}function f(){var t=d.pendingRequests.indexOf(r);-1!==t&&d.pendingRequests.splice(t,1)}var p,g,$=h.defer(),x=$.promise,C=r.headers,E=v(r.url,r.paramSerializer(r.params));if(d.pendingRequests.push(r),x.then(f,f),!r.cache&&!t.cache||!1===r.cache||"GET"!==r.method&&"JSONP"!==r.method||(p=w(r.cache)?r.cache:w(t.cache)?t.cache:m),p&&(g=p.get(E),b(g)?B(g)?g.then(c,c):qr(g)?s(g[1],g[0],V(g[2]),g[3]):s(g,200,{},"OK"):p.put(E,x)),y(g)){var k=Tn(r.url)?u()[r.xsrfCookieName||t.xsrfCookieName]:n;k&&(C[r.xsrfHeaderName||t.xsrfHeaderName]=k),a(r.method,E,i,o,C,r.timeout,r.withCredentials,r.responseType)}return x}function v(t,e){return e.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+e),t}var m=c("$http");t.paramSerializer=C(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var $=[];return o(s,function(t){$.unshift(C(t)?p.get(t):p.invoke(t))}),d.pendingRequests=[],function(t){o(arguments,function(t){d[t]=function(e,n){return d(f({},n||{},{method:t,url:e}))}})}("get","delete","head","jsonp"),function(t){o(arguments,function(t){d[t]=function(e,n,r){return d(f({},r||{},{method:t,url:e,data:n}))}})}("post","put","patch"),d.defaults=t,d}]}function Ae(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function Te(){this.$get=["$browser","$window","$document","$xhrFactory",function(t,e,n,r){return Oe(t,r,t.defer,e.angular.callbacks,n[0])}]}function Oe(t,e,n,r,i){function s(t,e,n){var o=i.createElement("script"),s=null;return o.type="text/javascript",o.src=t,o.async=!0,s=function(t){ai(o,"load",s),ai(o,"error",s),i.body.removeChild(o),o=null;var a=-1,u="unknown";t&&("load"!==t.type||r[e].called||(t={type:"error"}),u=t.type,a="error"===t.type?404:200),n&&n(a,u)},si(o,"load",s),si(o,"error",s),i.body.appendChild(o),s}return function(i,a,u,c,l,f,h,p){function d(){$&&$(),w&&w.abort()}function v(e,r,i,o,s){b(C)&&n.cancel(C),$=w=null,e(r,i,o,s),t.$$completeOutstandingRequest(g)}if(t.$$incOutstandingRequestCount(),a=a||t.url(),"jsonp"==Er(i)){var m="_"+(r.counter++).toString(36);r[m]=function(t){r[m].data=t,r[m].called=!0};var $=s(a.replace("JSON_CALLBACK","angular.callbacks."+m),m,function(t,e){v(c,t,r[m].data,"",e),r[m]=g})}else{var w=e(i,a);w.open(i,a,!0),o(l,function(t,e){b(t)&&w.setRequestHeader(e,t)}),w.onload=function(){var t=w.statusText||"",e="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=e?200:"file"==An(a).protocol?404:0),v(c,n,e,w.getAllResponseHeaders(),t)};var x=function(){v(c,-1,null,null,"")};if(w.onerror=x,w.onabort=x,h&&(w.withCredentials=!0),p)try{w.responseType=p}catch(t){if("json"!==p)throw t}w.send(y(u)?null:u)}if(f>0)var C=n(d,f);else B(f)&&f.then(d)}}function Re(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(t){return"\\\\\\"+t}function s(n){return n.replace(h,t).replace(p,e)}function a(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=W(t)}return t}function u(o,u,h,p){function d(t){try{return t=T(t),p&&!b(t)?t:a(t)}catch(t){r(Xi.interr(o,t))}}p=!!p;for(var g,v,m,$=0,w=[],x=[],C=o.length,E=[],k=[];$<C;){if(-1==(g=o.indexOf(t,$))||-1==(v=o.indexOf(e,g+c))){$!==C&&E.push(s(o.substring($)));break}$!==g&&E.push(s(o.substring($,g))),m=o.substring(g+c,v),w.push(m),x.push(n(m,d)),$=v+l,k.push(E.length),E.push("")}if(h&&E.length>1&&Xi.throwNoconcat(o),!u||w.length){var A=function(t){for(var e=0,n=w.length;e<n;e++){if(p&&y(t[e]))return;E[k[e]]=t[e]}return E.join("")},T=function(t){return h?i.getTrusted(h,t):i.valueOf(t)};return f(function(t){var e=0,n=w.length,i=new Array(n);try{for(;e<n;e++)i[e]=x[e](t);return A(i)}catch(t){r(Xi.interr(o,t))}},{exp:o,expressions:w,$$watchDelegate:function(t,e){var n;return t.$watchGroup(x,function(r,i){var o=A(r);S(e)&&e.call(this,o,r!==i?n:o,t),n=o})}})}}var c=t.length,l=e.length,h=new RegExp(t.replace(/./g,o),"g"),p=new RegExp(e.replace(/./g,o),"g");return u.startSymbol=function(){return t},u.endSymbol=function(){return e},u}]}function Me(){this.$get=["$rootScope","$window","$q","$$q",function(t,e,n,r){function i(i,s,a,u){var c=arguments.length>4,l=c?H(arguments,4):[],f=e.setInterval,h=e.clearInterval,p=0,d=b(u)&&!u,g=(d?r:n).defer(),v=g.promise;return a=b(a)?a:0,v.then(null,null,c?function(){i.apply(null,l)}:i),v.$$intervalId=f(function(){g.notify(p++),a>0&&p>=a&&(g.resolve(p),h(v.$$intervalId),delete o[v.$$intervalId]),d||t.$apply()},s),o[v.$$intervalId]=g,v}var o={};return i.cancel=function(t){return!!(t&&t.$$intervalId in o)&&(o[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete o[t.$$intervalId],!0)},i}]}function _e(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=nt(e[n]);return e.join("/")}function Pe(t,e){var n=An(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=p(n.port)||Gi[n.protocol]||null}function Be(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=An(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=tt(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function Ne(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function je(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function De(t){return t.replace(/(#.+)|#$/,"$1")}function Ie(t){return t.substr(0,je(t).lastIndexOf("/")+1)}function Ue(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Fe(t,e,n){this.$$html5=!0,n=n||"",Pe(t,this),this.$$parse=function(t){var n=Ne(e,t);if(!C(n))throw Ki("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Be(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=et(this.$$search),n=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=_e(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,s,a;return b(o=Ne(t,r))?(s=o,a=b(o=Ne(n,o))?e+(Ne("/",o)||o):t+s):b(o=Ne(e,r))?a=e+o:e==r+"/"&&(a=e),a&&this.$$parse(a),!!a}}function Ve(t,e,n){Pe(t,this),this.$$parse=function(r){var i,o=Ne(t,r)||Ne(e,r);y(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",y(o)&&(t=r,this.replace())):(i=Ne(n,o),y(i)&&(i=o)),Be(i,this),this.$$path=function(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}(this.$$path,i,t),this.$$compose()},this.$$compose=function(){var e=et(this.$$search),r=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=_e(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return je(t)==je(e)&&(this.$$parse(e),!0)}}function qe(t,e,n){this.$$html5=!0,Ve.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,s;return t==je(r)?o=r:(s=Ne(e,r))?o=t+n+s:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o},this.$$compose=function(){var e=et(this.$$search),r=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=_e(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function Le(t){return function(){return this[t]}}function He(t,e){return function(n){return y(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function ze(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return b(e)?(t=e,this):t},this.html5Mode=function(t){return P(t)?(e.enabled=t,this):w(t)?(P(t.enabled)&&(e.enabled=t.enabled),P(t.requireBase)&&(e.requireBase=t.requireBase),P(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){function a(t,e,n){var i=c.url(),o=c.$$state;try{r.url(t,e,n),c.$$state=r.state()}catch(t){throw c.url(i),c.$$state=o,t}}function u(t,e){n.$broadcast("$locationChangeSuccess",c.absUrl(),t,c.$$state,e)}var c,l,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw Ki("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=Ue(p)+(h||"/"),l=i.history?Fe:qe}else f=je(p),l=Ve;var d=Ie(f);c=new l(f,d,"#"+t),c.$$parseLinkUrl(p,p),c.$$state=r.state();var g=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=Rr(t.target);"a"!==I(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var a=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");w(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=An(a.animVal).href),g.test(a)||!a||i.attr("target")||t.isDefaultPrevented()||c.$$parseLinkUrl(a,u)&&(t.preventDefault(),c.absUrl()!=r.url()&&(n.$apply(),s.angular["ff-684208-preventDefault"]=!0))}}),De(c.absUrl())!=De(p)&&r.url(c.absUrl(),!0);var v=!0;return r.onUrlChange(function(t,e){if(y(Ne(d,t)))return void(s.location.href=t);n.$evalAsync(function(){var r,i=c.absUrl(),o=c.$$state;t=De(t),c.$$parse(t),c.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,c.absUrl()===t&&(r?(c.$$parse(i),c.$$state=o,a(i,!1,o)):(v=!1,u(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){var t=De(r.url()),e=De(c.absUrl()),o=r.state(),s=c.$$replace,l=t!==e||c.$$html5&&i.history&&o!==c.$$state;(v||l)&&(v=!1,n.$evalAsync(function(){var e=c.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,c.$$state,o).defaultPrevented;c.absUrl()===e&&(r?(c.$$parse(t),c.$$state=o):(l&&a(e,s,o===c.$$state?null:c.$$state),u(t,o)))})),c.$$replace=!1}),c}]}function Ye(){var t=!0,e=this;this.debugEnabled=function(e){return b(e)?(t=e,this):t},this.$get=["$window",function(n){function r(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function i(t){var e=n.console||{},i=e[t]||e.log||g,s=!1;try{s=!!i.apply}catch(t){}return s?function(){var t=[];return o(arguments,function(e){t.push(r(e))}),i.apply(e,t)}:function(t,e){i(t,null==e?"":e)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function We(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw Qi("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Xe(t,e){if(t+="",!C(t))throw Qi("iseccst","Cannot convert object to primitive value! Expression: {0}",e);return t}function Je(t,e){if(t){if(t.constructor===t)throw Qi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw Qi("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw Qi("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw Qi("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function Ge(t,e){if(t){if(t.constructor===t)throw Qi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===to||t===eo||t===no)throw Qi("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function Ke(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw Qi("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}function Ze(t,e){return void 0!==t?t:e}function Qe(t,e){return void 0===t?e:void 0===e?t:t+e}function tn(t,e){return!t(e).$stateful}function en(t,e){var n,r;switch(t.type){case so.Program:n=!0,o(t.body,function(t){en(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case so.Literal:t.constant=!0,t.toWatch=[];break;case so.UnaryExpression:en(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case so.BinaryExpression:en(t.left,e),en(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case so.LogicalExpression:en(t.left,e),en(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case so.ConditionalExpression:en(t.test,e),en(t.alternate,e),en(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case so.Identifier:t.constant=!1,t.toWatch=[t];break;case so.MemberExpression:en(t.object,e),t.computed&&en(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case so.CallExpression:n=!!t.filter&&tn(e,t.callee.name),r=[],o(t.arguments,function(t){en(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&tn(e,t.callee.name)?r:[t];break;case so.AssignmentExpression:en(t.left,e),en(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case so.ArrayExpression:n=!0,r=[],o(t.elements,function(t){en(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=r;break;case so.ObjectExpression:n=!0,r=[],o(t.properties,function(t){en(t.value,e),n=n&&t.value.constant,t.value.constant||r.push.apply(r,t.value.toWatch)}),t.constant=n,t.toWatch=r;break;case so.ThisExpression:t.constant=!1,t.toWatch=[]}}function nn(t){if(1==t.length){var e=t[0].expression,r=e.toWatch;return 1!==r.length?r:r[0]!==e?r:n}}function rn(t){return t.type===so.Identifier||t.type===so.MemberExpression}function on(t){if(1===t.body.length&&rn(t.body[0].expression))return{type:so.AssignmentExpression,left:t.body[0].expression,right:{type:so.NGValueParameter},operator:"="}}function sn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===so.Literal||t.body[0].expression.type===so.ArrayExpression||t.body[0].expression.type===so.ObjectExpression)}function an(t){return t.constant}function un(t,e){this.astBuilder=t,this.$filter=e}function cn(t,e){this.astBuilder=t,this.$filter=e}function ln(t){return"constructor"==t}function fn(t){return S(t.valueOf)?t.valueOf():uo.call(t)}function hn(){var t=gt(),e=gt();this.$get=["$filter",function(r){function i(n,i,o){var a,p,$;switch(o=o||m,typeof n){case"string":n=n.trim(),$=n;var y=o?e:t;if(!(a=y[$])){":"===n.charAt(0)&&":"===n.charAt(1)&&(p=!0,n=n.substring(2));var b=o?v:d,w=new oo(b);a=new ao(w,r,b).parse(n),a.constant?a.$$watchDelegate=f:p?a.$$watchDelegate=a.literal?l:c:a.inputs&&(a.$$watchDelegate=u),o&&(a=s(a)),y[$]=a}return h(a,i);case"function":return h(n,i);default:return h(g,i)}}function s(t){function e(e,n,r,i){var o=m;m=!0;try{return t(e,n,r,i)}finally{m=o}}if(!t)return t;e.$$watchDelegate=t.$$watchDelegate,e.assign=s(t.assign),e.constant=t.constant,e.literal=t.literal;for(var n=0;t.inputs&&n<t.inputs.length;++n)t.inputs[n]=s(t.inputs[n]);return e.inputs=t.inputs,e}function a(t,e){return null==t||null==e?t===e:("object"!=typeof t||"object"!=typeof(t=fn(t)))&&(t===e||t!==t&&e!==e)}function u(t,e,r,i,o){var s,u=i.inputs;if(1===u.length){var c=a;return u=u[0],t.$watch(function(t){var e=u(t);return a(e,c)||(s=i(t,n,n,[e]),c=e&&fn(e)),s},e,r,o)}for(var l=[],f=[],h=0,p=u.length;h<p;h++)l[h]=a,f[h]=null;return t.$watch(function(t){for(var e=!1,r=0,o=u.length;r<o;r++){var c=u[r](t);(e||(e=!a(c,l[r])))&&(f[r]=c,l[r]=c&&fn(c))}return e&&(s=i(t,n,n,f)),s},e,r,o)}function c(t,e,n,r){var i,o;return i=t.$watch(function(t){return r(t)},function(t,n,r){o=t,S(e)&&e.apply(this,arguments),b(t)&&r.$$postDigest(function(){b(o)&&i()})},n)}function l(t,e,n,r){function i(t){var e=!0;return o(t,function(t){b(t)||(e=!1)}),e}var s,a;return s=t.$watch(function(t){return r(t)},function(t,n,r){a=t,S(e)&&e.call(this,t,n,r),i(t)&&r.$$postDigest(function(){i(a)&&s()})},n)}function f(t,e,n,r){var i;return i=t.$watch(function(t){return r(t)},function(t,n,r){S(e)&&e.apply(this,arguments),i()},n)}function h(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,i=n!==l&&n!==c,o=i?function(n,i,o,s){var a=r&&s?s[0]:t(n,i,o,s);return e(a,n,i)}:function(n,r,i,o){var s=t(n,r,i,o),a=e(s,n,r);return b(s)?a:s};return t.$$watchDelegate&&t.$$watchDelegate!==u?o.$$watchDelegate=t.$$watchDelegate:e.$stateful||(o.$$watchDelegate=u,r=!t.inputs,o.inputs=t.inputs?t.inputs:[t]),o}var p=Yr().noUnsafeEval,d={csp:p,expensiveChecks:!1},v={csp:p,expensiveChecks:!0},m=!1;return i.$$runningExpensiveChecks=function(){return m},i}]}function pn(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return gn(function(e){t.$evalAsync(e)},e)}]}function dn(){this.$get=["$browser","$exceptionHandler",function(t,e){return gn(function(e){t.defer(e)},e)}]}function gn(t,e){function i(t,e,n){function r(e){return function(n){i||(i=!0,e.call(t,n))}}var i=!1;return[r(e),r(n)]}function s(){this.$$state={status:0}}function a(t,e){return function(n){e.call(t,n)}}function u(t){var r,i,o;o=t.pending,t.processScheduled=!1,t.pending=n;for(var s=0,a=o.length;s<a;++s){i=o[s][0],r=o[s][t.status];try{S(r)?i.resolve(r(t.value)):1===t.status?i.resolve(t.value):i.reject(t.value)}catch(t){i.reject(t),e(t)}}}function c(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t(function(){u(e)}))}function l(){this.promise=new s,this.resolve=a(this,this.resolve),this.reject=a(this,this.reject),this.notify=a(this,this.notify)}function h(t){var e=new l,n=0,r=qr(t)?[]:{};return o(t,function(t,i){n++,$(t).then(function(t){r.hasOwnProperty(i)||(r[i]=t,--n||e.resolve(r))},function(t){r.hasOwnProperty(i)||e.reject(t)})}),0===n&&e.resolve(r),e.promise}var p=r("$q",TypeError),d=function(){return new l};f(s.prototype,{then:function(t,e,n){if(y(t)&&y(e)&&y(n))return this;var r=new l;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&c(this.$$state),r.promise},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then(function(e){return m(e,!0,t)},function(e){return m(e,!1,t)},e)}}),f(l.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(p("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){var n,r;r=i(this,this.$$resolve,this.$$reject);try{(w(t)||S(t))&&(n=t&&t.then),S(n)?(this.promise.$$state.status=-1,n.call(t,r[0],r[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,c(this.promise.$$state))}catch(t){r[1](t),e(t)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,c(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,i,o=0,s=r.length;o<s;o++){i=r[o][0],t=r[o][3];try{i.notify(S(t)?t(n):n)}catch(t){e(t)}}})}});var g=function(t){var e=new l;return e.reject(t),e.promise},v=function(t,e){var n=new l;return e?n.resolve(t):n.reject(t),n.promise},m=function(t,e,n){var r=null;try{S(n)&&(r=n())}catch(t){return v(t,!1)}return B(r)?r.then(function(){return v(t,e)},function(t){return v(t,!1)}):v(t,e)},$=function(t,e,n,r){var i=new l;return i.resolve(t),i.promise.then(e,n,r)},b=$,x=function t(e){function n(t){i.resolve(t)}function r(t){i.reject(t)}if(!S(e))throw p("norslvr","Expected resolverFn, got '{0}'",e);if(!(this instanceof t))return new t(e);var i=new l;return e(n,r),i.promise};return x.defer=d,x.reject=g,x.when=$,x.resolve=b,x.all=h,x}function vn(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function mn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null}return e.prototype=t,e}var e=10,n=r("$rootScope"),s=null,a=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,c,l,f){function h(t){t.currentScope.$$destroyed=!0}function p(t){9===Or&&(t.$$childHead&&p(t.$$childHead),t.$$nextSibling&&p(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function d(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function v(t){if(k.$$phase)throw n("inprog","{0} already in progress",k.$$phase);k.$$phase=t}function m(){k.$$phase=null}function $(t,e){do{t.$$watchersCount+=e}while(t=t.$parent)}function b(t,e,n){do{t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n]}while(t=t.$parent)}function x(){}function C(){for(;O.length;)try{O.shift()()}catch(t){c(t)}a=null}function E(){null===a&&(a=f.defer(function(){k.$apply(C)}))}d.prototype={constructor:d,$new:function(e,n){var r;return n=n||this,e?(r=new d,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!=this)&&r.$on("$destroy",h),r},$watch:function(t,e,n,r){var i=l(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,a=o.$$watchers,u={fn:e,last:x,get:i,exp:r||t,eq:!!n};return s=null,S(e)||(u.fn=g),a||(a=o.$$watchers=[]),a.unshift(u),$(this,1),function(){U(a,u)>=0&&$(o,-1),s=null}},$watchGroup:function(t,e){function n(){u=!1,c?(c=!1,e(i,i,a)):e(i,r,a)}var r=new Array(t.length),i=new Array(t.length),s=[],a=this,u=!1,c=!0;if(!t.length){var l=!0;return a.$evalAsync(function(){l&&e(i,i,a)}),function(){l=!1}}return 1===t.length?this.$watch(t[0],function(t,n,o){i[0]=t,r[0]=n,e(i,t===n?i:r,o)}):(o(t,function(t,e){var o=a.$watch(t,function(t,o){i[e]=t,r[e]=o,u||(u=!0,a.$evalAsync(n))});s.push(o)}),function(){for(;s.length;)s.shift()()})},$watchCollection:function(t,e){function n(t){o=t;var e,n,r,a;if(!y(o)){if(w(o))if(i(o)){s!==p&&(s=p,v=s.length=0,f++),e=o.length,v!==e&&(f++,s.length=v=e);for(var u=0;u<e;u++)a=s[u],r=o[u],a!==a&&r!==r||a===r||(f++,s[u]=r)}else{s!==d&&(s=d={},v=0,f++),e=0;for(n in o)kr.call(o,n)&&(e++,r=o[n],a=s[n],n in s?a!==a&&r!==r||a===r||(f++,s[n]=r):(v++,s[n]=r,f++));if(v>e){f++;for(n in s)kr.call(o,n)||(v--,delete s[n])}}else s!==o&&(s=o,f++);return f}}function r(){if(g?(g=!1,e(o,o,u)):e(o,a,u),c)if(w(o))if(i(o)){a=new Array(o.length);for(var t=0;t<o.length;t++)a[t]=o[t]}else{a={};for(var n in o)kr.call(o,n)&&(a[n]=o[n])}else a=o}n.$stateful=!0;var o,s,a,u=this,c=e.length>1,f=0,h=l(t,n),p=[],d={},g=!0,v=0;return this.$watch(h,r)},$digest:function(){var t,r,i,o,u,l,h,p,d,g,$,y,b=e,w=this,E=[];v("$digest"),f.$$checkUrlChange(),this===k&&null!==a&&(f.defer.cancel(a),C()),s=null;do{for(p=!1,g=w;A.length;){try{y=A.shift(),y.scope.$eval(y.expression,y.locals)}catch(t){c(t)}s=null}t:do{if(l=g.$$watchers)for(h=l.length;h--;)try{if(t=l[h])if(u=t.get,(r=u(g))===(i=t.last)||(t.eq?q(r,i):"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))){if(t===s){p=!1;break t}}else p=!0,s=t,t.last=t.eq?F(r,null):r,o=t.fn,o(r,i===x?r:i,g),b<5&&($=4-b,E[$]||(E[$]=[]),E[$].push({msg:S(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:r,oldVal:i}))}catch(t){c(t)}if(!(d=g.$$watchersCount&&g.$$childHead||g!==w&&g.$$nextSibling))for(;g!==w&&!(d=g.$$nextSibling);)g=g.$parent}while(g=d);if((p||A.length)&&!b--)throw m(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,E)}while(p||A.length);for(m();T.length;)try{T.shift()()}catch(t){c(t)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===k&&f.$$applicationDestroyed(),$(this,-this.$$watchersCount);for(var e in this.$$listenerCount)b(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=g,this.$on=this.$watch=this.$watchGroup=function(){return g},this.$$listeners={},this.$$nextSibling=null,p(this)}},$eval:function(t,e){return l(t)(this,e)},$evalAsync:function(t,e){k.$$phase||A.length||f.defer(function(){A.length&&k.$digest()}),A.push({scope:this,expression:l(t),locals:e})},$$postDigest:function(t){T.push(t)},$apply:function(t){try{v("$apply");try{return this.$eval(t)}finally{m()}}catch(t){c(t)}finally{try{k.$digest()}catch(t){throw c(t),t}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&O.push(e),t=l(t),E()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do{r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);-1!==r&&(n[r]=null,b(i,1,t))}},$emit:function(t,e){var n,r,i,o=[],s=this,a=!1,u={name:t,targetScope:s,stopPropagation:function(){a=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=L([u],arguments,1);do{for(n=s.$$listeners[t]||o,u.currentScope=s,r=0,i=n.length;r<i;r++)if(n[r])try{n[r].apply(null,l)}catch(t){c(t)}else n.splice(r,1),r--,i--;if(a)return u.currentScope=null,u;s=s.$parent}while(s);return u.currentScope=null,u},$broadcast:function(t,e){var n=this,r=n,i=n,o={name:t,targetScope:n,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return o;for(var s,a,u,l=L([o],arguments,1);r=i;){for(o.currentScope=r,s=r.$$listeners[t]||[],a=0,u=s.length;a<u;a++)if(s[a])try{s[a].apply(null,l)}catch(t){c(t)}else s.splice(a,1),a--,u--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var k=new d,A=k.$$asyncQueue=[],T=k.$$postDigestQueue=[],O=k.$$applyAsyncQueue=[];return k}]}function $n(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return b(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return b(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return i=An(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function yn(t){if("self"===t)return t;if(C(t)){if(t.indexOf("***")>-1)throw co("iwcard","Illegal sequence *** in string matcher.  String: {0}",t);return t=zr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(A(t))return new RegExp("^"+t.source+"$");throw co("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function bn(t){var e=[];return b(t)&&o(t,function(t){e.push(yn(t))}),e}function wn(){this.SCE_CONTEXTS=lo;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=bn(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=bn(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?Tn(e):!!t.exec(e.href)}function i(n){var i,o,s=An(n.toString()),a=!1;for(i=0,o=t.length;i<o;i++)if(r(t[i],s)){a=!0;break}if(a)for(i=0,o=e.length;i<o;i++)if(r(e[i],s)){a=!1;break}return a}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}function s(t,e){var n=f.hasOwnProperty(t)?f[t]:null;if(!n)throw co("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||y(e)||""===e)return e;if("string"!=typeof e)throw co("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)}function a(t){return t instanceof l?t.$$unwrapTrustedValue():t}function u(t,e){if(null===e||y(e)||""===e)return e;var n=f.hasOwnProperty(t)?f[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===lo.RESOURCE_URL){if(i(e))return e;throw co("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",e.toString())}if(t===lo.HTML)return c(e);throw co("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(t){throw co("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(c=n.get("$sanitize"));var l=o(),f={};return f[lo.HTML]=o(l),f[lo.CSS]=o(l),f[lo.URL]=o(l),f[lo.JS]=o(l),f[lo.RESOURCE_URL]=o(f[lo.URL]),{trustAs:s,getTrusted:u,valueOf:a}}]}function xn(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&Or<8)throw co("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var r=V(lo);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=v),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:e(n,function(e){return r.getTrusted(t,e)})};var i=r.parseAs,s=r.getTrusted,a=r.trustAs;return o(lo,function(t,e){var n=Er(e);r[bt("parse_as_"+n)]=function(e){return i(t,e)},r[bt("get_trusted_"+n)]=function(e){return s(t,e)},r[bt("trust_as_"+n)]=function(e){return a(t,e)}}),r}]}function Cn(){this.$get=["$window","$document",function(t,e){var n,r,i={},o=p((/android (\d+)/.exec(Er((t.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((t.navigator||{}).userAgent),a=e[0]||{},u=/^(Moz|webkit|ms)(?=[A-Z])/,c=a.body&&a.body.style,l=!1,f=!1;if(c){for(var h in c)if(r=u.exec(h)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in c&&"webkit"),l=!!("transition"in c||n+"Transition"in c),f=!!("animation"in c||n+"Animation"in c),!o||l&&f||(l=C(c.webkitTransition),f=C(c.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||o<4||s),hasEvent:function(t){if("input"===t&&Or<=11)return!1;if(y(i[t])){var e=a.createElement("div");i[t]="on"+t in e}return i[t]},csp:Yr(),vendorPrefix:n,transitions:l,animations:f,android:o}}]}function En(){this.$get=["$templateCache","$http","$q","$sce",function(t,e,n,r){function i(o,s){function a(t){if(!s)throw ji("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,t.status,t.statusText);return n.reject(t)}i.totalPendingRequests++,C(o)&&!y(t.get(o))||(o=r.getTrustedResourceUrl(o));var u=e.defaults&&e.defaults.transformResponse;qr(u)?u=u.filter(function(t){return t!==be}):u===be&&(u=null);var c={cache:t,transformResponse:u};return e.get(o,c).finally(function(){i.totalPendingRequests--}).then(function(e){return t.put(o,e.data),e.data},a)}return i.totalPendingRequests=0,i}]}function kn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var r={};return r.findBindings=function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return o(r,function(t){var r=Ur.element(t).data("$binding");r&&o(r,function(r){if(n){new RegExp("(^|\\s)"+zr(e)+"(\\s|\\||$)").test(r)&&i.push(t)}else-1!=r.indexOf(e)&&i.push(t)})}),i},r.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",s="["+r[i]+"model"+o+'"'+e+'"]',a=t.querySelectorAll(s);if(a.length)return a}},r.getLocation=function(){return n.url()},r.setLocation=function(e){e!==n.url()&&(n.url(e),t.$digest())},r.whenStable=function(t){e.notifyWhenNoOutstandingRequests(t)},r}]}function Sn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){function o(o,a,u){S(o)||(u=a,a=o,o=g);var c,l=H(arguments,3),f=b(u)&&!u,h=(f?r:n).defer(),p=h.promise;return c=e.defer(function(){try{h.resolve(o.apply(null,l))}catch(t){h.reject(t),i(t)}finally{delete s[p.$$timeoutId]}f||t.$apply()},a),p.$$timeoutId=c,s[c]=h,p}var s={};return o.cancel=function(t){return!!(t&&t.$$timeoutId in s)&&(s[t.$$timeoutId].reject("canceled"),delete s[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},o}]}function An(t){var e=t;return Or&&(fo.setAttribute("href",e),e=fo.href),fo.setAttribute("href",e),{href:fo.href,protocol:fo.protocol?fo.protocol.replace(/:$/,""):"",host:fo.host,search:fo.search?fo.search.replace(/^\?/,""):"",hash:fo.hash?fo.hash.replace(/^#/,""):"",hostname:fo.hostname,port:fo.port,pathname:"/"===fo.pathname.charAt(0)?fo.pathname:"/"+fo.pathname}}function Tn(t){var e=C(t)?An(t):t;return e.protocol===ho.protocol&&e.host===ho.host}function On(){this.$get=m(t)}function Rn(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var n=t[0]||{},r={},i="";return function(){var t,o,s,a,u,c=n.cookie||"";if(c!==i)for(i=c,t=i.split("; "),r={},s=0;s<t.length;s++)o=t[s],(a=o.indexOf("="))>0&&(u=e(o.substring(0,a)),y(r[u])&&(r[u]=e(o.substring(a+1))));return r}}function Mn(){this.$get=Rn}function _n(t){function e(r,i){if(w(r)){var s={};return o(r,function(t,n){s[n]=e(n,t)}),s}return t.factory(r+n,i)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",Dn),e("date",Zn),e("filter",Pn),e("json",Qn),e("limitTo",tr),e("lowercase",bo),e("number",In),e("orderBy",er),e("uppercase",wo)}function Pn(){return function(t,e,n){if(!i(t)){if(null==t)return t;throw r("filter")("notarray","Expected array but received: {0}",t)}var o,s,a=jn(e);switch(a){case"function":o=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":o=Bn(e,n,s);break;default:return t}return Array.prototype.filter.call(t,o)}}function Bn(t,e,n){var r=w(t)&&"$"in t;return!0===e?e=q:S(e)||(e=function(t,e){return!y(t)&&(null===t||null===e?t===e:!(w(e)||w(t)&&!$(t))&&(t=Er(""+t),e=Er(""+e),-1!==t.indexOf(e)))}),function(i){return r&&!w(i)?Nn(i,t.$,e,!1):Nn(i,t,e,n)}}function Nn(t,e,n,r,i){var o=jn(t),s=jn(e);if("string"===s&&"!"===e.charAt(0))return!Nn(t,e.substring(1),n,r);if(qr(t))return t.some(function(t){return Nn(t,e,n,r)});switch(o){case"object":var a;if(r){for(a in t)if("$"!==a.charAt(0)&&Nn(t[a],e,n,!0))return!0;return!i&&Nn(t,e,n,!1)}if("object"===s){for(a in e){var u=e[a];if(!S(u)&&!y(u)){var c="$"===a;if(!Nn(c?t:t[a],u,n,c,c))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function jn(t){return null===t?"null":typeof t}function Dn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return y(n)&&(n=e.CURRENCY_SYM),y(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Vn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function In(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Vn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Un(t){var e,n,r,i,o,s=0;for((n=t.indexOf(go))>-1&&(t=t.replace(go,"")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)==vo;r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)==vo;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>po&&(e=e.splice(0,po-1),s=n-1,n=1),{d:e,e:s,i:n}}function Fn(t,e,n,r){var i=t.d,o=i.length-t.i;e=y(e)?Math.min(Math.max(n,o),r):+e;var s=e+t.i,a=i[s];if(s>0)i.splice(s);else{t.i=1,i.length=s=e+1;for(var u=0;u<s;u++)i[u]=0}for(a>=5&&i[s-1]++;o<e;o++)i.push(0);var c=i.reduceRight(function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)},0);c&&(i.unshift(c),t.i++)}function Vn(t,e,n,r,i){if(!C(t)&&!E(t)||isNaN(t))return"";var o,s=!isFinite(t),a=!1,u=Math.abs(t)+"",c="";if(s)c="∞";else{o=Un(u),Fn(o,i,e.minFrac,e.maxFrac);var l=o.d,f=o.i,h=o.e,p=[];for(a=l.reduce(function(t,e){return t&&!e},!0);f<0;)l.unshift(0),f++;f>0?p=l.splice(f,l.length):(p=l,l=[0]);var d=[];for(l.length>=e.lgSize&&d.unshift(l.splice(-e.lgSize,l.length).join(""));l.length>e.gSize;)d.unshift(l.splice(-e.gSize,l.length).join(""));l.length&&d.unshift(l.join("")),c=d.join(n),p.length&&(c+=r+p.join("")),h&&(c+="e+"+h)}return t<0&&!a?e.negPre+c+e.negSuf:e.posPre+c+e.posSuf}function qn(t,e,n){var r="";for(t<0&&(r="-",t=-t),t=""+t;t.length<e;)t=vo+t;return n&&(t=t.substr(t.length-e)),r+t}function Ln(t,e,n,r){return n=n||0,function(i){var o=i["get"+t]();return(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),qn(o,e,r)}}function Hn(t,e){return function(n,r){var i=n["get"+t]();return r[Sr(e?"SHORT"+t:t)][i]}}function zn(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=qn(Math[r>0?"floor":"ceil"](r/60),2)+qn(Math.abs(r%60),2)}function Yn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Wn(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Xn(t){return function(e){var n=Yn(e.getFullYear()),r=Wn(e),i=+r-+n;return qn(1+Math.round(i/6048e5),t)}}function Jn(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function Gn(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function Kn(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function Zn(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,s=e[8]?r.setUTCFullYear:r.setFullYear,a=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=p(e[9]+e[10]),o=p(e[9]+e[11])),s.call(r,p(e[1]),p(e[2])-1,p(e[3]));var u=p(e[4]||0)-i,c=p(e[5]||0)-o,l=p(e[6]||0),f=Math.round(1e3*parseFloat("0."+(e[7]||0)));return a.call(r,u,c,l,f),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var s,a,u="",c=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,C(n)&&(n=yo.test(n)?p(n):e(n)),E(n)&&(n=new Date(n)),!k(n)||!isFinite(n.getTime()))return n;for(;r;)a=$o.exec(r),a?(c=L(c,a,1),r=c.pop()):(c.push(r),r=null);var l=n.getTimezoneOffset();return i&&(l=J(i,l),n=K(n,i,!0)),o(c,function(e){s=mo[e],u+=s?s(n,t.DATETIME_FORMATS,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function Qn(){return function(t,e){return y(e)&&(e=2),W(t,e)}}function tr(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):p(e),isNaN(e)?t:(E(t)&&(t=t.toString()),qr(t)||C(t)?(n=!n||isNaN(n)?0:p(n),n=n<0?Math.max(0,t.length+n):n,e>=0?t.slice(n,n+e):0===n?t.slice(e,t.length):t.slice(Math.max(0,n+e),n)):t)}}function er(t){function e(e,n){return n=n?-1:1,e.map(function(e){var r=1,i=v;if(S(e))i=e;else if(C(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(r="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e),i.constant))){var o=i();i=function(t){return t[o]}}return{get:i,descending:r*n}})}function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function r(t,e){return"function"==typeof t.valueOf&&(t=t.valueOf(),n(t))?t:$(t)&&(t=t.toString(),n(t))?t:e}function o(t,e){var n=typeof t;return null===t?(n="string",t="null"):"string"===n?t=t.toLowerCase():"object"===n&&(t=r(t,e)),{value:t,type:n}}function s(t,e){var n=0;return t.type===e.type?t.value!==e.value&&(n=t.value<e.value?-1:1):n=t.type<e.type?-1:1,n}return function(t,n,r){function a(t,e){return{value:t,predicateValues:c.map(function(n){return o(n.get(t),e)})}}function u(t,e){for(var n=0,r=0,i=c.length;r<i&&!(n=s(t.predicateValues[r],e.predicateValues[r])*c[r].descending);++r);return n}if(!i(t))return t;qr(n)||(n=[n]),0===n.length&&(n=["+"]);var c=e(n,r);c.push({get:function(){return{}},descending:r?-1:1});var l=Array.prototype.map.call(t,a);return l.sort(u),t=l.map(function(t){return t.value})}}function nr(t){return S(t)&&(t={link:t}),t.restrict=t.restrict||"AC",m(t)}function rr(t,e){t.$name=e}function ir(t,e,r,i,s){var a=this,u=[];a.$error={},a.$$success={},a.$pending=n,a.$name=s(e.name||e.ngForm||"")(r),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=Eo,a.$rollbackViewValue=function(){o(u,function(t){t.$rollbackViewValue()})},a.$commitViewValue=function(){o(u,function(t){t.$commitViewValue()})},a.$addControl=function(t){ht(t.$name,"input"),u.push(t),t.$name&&(a[t.$name]=t),t.$$parentForm=a},a.$$renameControl=function(t,e){var n=t.$name;a[n]===t&&delete a[n],a[e]=t,t.$name=e},a.$removeControl=function(t){t.$name&&a[t.$name]===t&&delete a[t.$name],o(a.$pending,function(e,n){a.$setValidity(n,null,t)}),o(a.$error,function(e,n){a.$setValidity(n,null,t)}),o(a.$$success,function(e,n){a.$setValidity(n,null,t)}),U(u,t),t.$$parentForm=Eo},yr({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];if(r){-1===r.indexOf(n)&&r.push(n)}else t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(U(r,n),0===r.length&&delete t[e])},$animate:i}),a.$setDirty=function(){i.removeClass(t,us),i.addClass(t,cs),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){i.setClass(t,us,cs+" "+ko),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,o(u,function(t){t.$setPristine()})},a.$setUntouched=function(){o(u,function(t){t.$setUntouched()})},a.$setSubmitted=function(){i.addClass(t,ko),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function or(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function sr(t,e,n,r,i,o){ar(t,e,n,r,i,o),or(r)}function ar(t,e,n,r,i,o){var s=Er(e[0].type);if(!i.android){var a=!1;e.on("compositionstart",function(t){a=!0}),e.on("compositionend",function(){a=!1,c()})}var u,c=function(t){if(u&&(o.defer.cancel(u),u=null),!a){var i=e.val(),c=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(i=Hr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,c)}};if(i.hasEvent("input"))e.on("input",c);else{var l=function(t,e,n){u||(u=o.defer(function(){u=null,e&&e.value===n||c(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||l(t,this,this.value)}),i.hasEvent("paste")&&e.on("paste cut",l)}e.on("change",c),Uo[s]&&r.$$hasNativeValidators&&s===n.type&&e.on(Io,function(t){if(!u){var e=this[Cr],n=e.badInput,r=e.typeMismatch;u=o.defer(function(){u=null,e.badInput===n&&e.typeMismatch===r||c(t)})}}),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function ur(t,e){if(k(t))return t;if(C(t)){No.lastIndex=0;var n=No.exec(t);if(n){var r=+n[1],i=+n[2],o=0,s=0,a=0,u=0,c=Yn(r),l=7*(i-1);return e&&(o=e.getHours(),s=e.getMinutes(),a=e.getSeconds(),u=e.getMilliseconds()),new Date(r,0,c.getDate()+l,o,s,a,u)}}return NaN}function cr(t,e){return function(n,r){var i,s;if(k(n))return n;if(C(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Oo.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n))return i.shift(),s=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(t,n){n<e.length&&(s[e[n]]=+t)}),new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0)}return NaN}}function lr(t,e,r,i){return function(o,s,a,u,c,l,f){function h(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())}function p(t){return b(t)&&!k(t)?r(t)||n:t}fr(o,s,a,u),ar(o,s,a,u,c,l);var d,g=u&&u.$options&&u.$options.timezone;if(u.$$parserName=t,u.$parsers.push(function(t){if(u.$isEmpty(t))return null;if(e.test(t)){var i=r(t,d);return g&&(i=K(i,g)),i}return n}),u.$formatters.push(function(t){if(t&&!k(t))throw fs("datefmt","Expected `{0}` to be a date",t);return h(t)?(d=t,d&&g&&(d=K(d,g,!0)),f("date")(t,i,g)):(d=null,"")}),b(a.min)||a.ngMin){var v;u.$validators.min=function(t){return!h(t)||y(v)||r(t)>=v},a.$observe("min",function(t){v=p(t),u.$validate()})}if(b(a.max)||a.ngMax){var m;u.$validators.max=function(t){return!h(t)||y(m)||r(t)<=m},a.$observe("max",function(t){m=p(t),u.$validate()})}}}function fr(t,e,r,i){var o=e[0];(i.$$hasNativeValidators=w(o.validity))&&i.$parsers.push(function(t){var r=e.prop(Cr)||{};return r.badInput&&!r.typeMismatch?n:t})}function hr(t,e,r,i,o,s){if(fr(t,e,r,i),ar(t,e,r,i,o,s),i.$$parserName="number",i.$parsers.push(function(t){return i.$isEmpty(t)?null:_o.test(t)?parseFloat(t):n}),i.$formatters.push(function(t){if(!i.$isEmpty(t)){if(!E(t))throw fs("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),b(r.min)||r.ngMin){var a;i.$validators.min=function(t){return i.$isEmpty(t)||y(a)||t>=a},r.$observe("min",function(t){b(t)&&!E(t)&&(t=parseFloat(t,10)),a=E(t)&&!isNaN(t)?t:n,i.$validate()})}if(b(r.max)||r.ngMax){var u;i.$validators.max=function(t){return i.$isEmpty(t)||y(u)||t<=u},r.$observe("max",function(t){b(t)&&!E(t)&&(t=parseFloat(t,10)),u=E(t)&&!isNaN(t)?t:n,i.$validate()})}}function pr(t,e,n,r,i,o){ar(t,e,n,r,i,o),or(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Ro.test(n)}}function dr(t,e,n,r,i,o){ar(t,e,n,r,i,o),or(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Mo.test(n)}}function gr(t,e,n,r){y(n.name)&&e.attr("name",u());var i=function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)};e.on("click",i),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function vr(t,e,n,r,i){var o;if(b(r)){if(o=t(r),!o.constant)throw fs("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}function mr(t,e,n,r,i,o,s,a){var u=vr(a,t,"ngTrueValue",n.ngTrueValue,!0),c=vr(a,t,"ngFalseValue",n.ngFalseValue,!1),l=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",l),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(function(t){return q(t,u)}),r.$parsers.push(function(t){return t?u:c})}function $r(t,e){return t="ngClass"+t,["$animate",function(n){function r(t,e){var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i==e[o])continue t;n.push(i)}return n}function i(t){var e=[];return qr(t)?(o(t,function(t){e=e.concat(i(t))}),e):C(t)?t.split(" "):w(t)?(o(t,function(t,n){t&&(e=e.concat(n.split(" ")))}),e):t}return{restrict:"AC",link:function(s,a,u){function c(t){var e=f(t,1);u.$addClass(e)}function l(t){var e=f(t,-1);u.$removeClass(e)}function f(t,e){var n=a.data("$classCounts")||gt(),r=[];return o(t,function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&r.push(t))}),a.data("$classCounts",n),r.join(" ")}function h(t,e){var i=r(e,t),o=r(t,e);i=f(i,1),o=f(o,-1),i&&i.length&&n.addClass(a,i),o&&o.length&&n.removeClass(a,o)}function p(t){if(!0===e||s.$index%2===e){var n=i(t||[]);if(d){if(!q(t,d)){var r=i(d);h(r,n)}}else c(n)}d=qr(t)?t.map(function(t){return V(t)}):V(t)}var d;s.$watch(u[t],p,!0),u.$observe("class",function(e){p(s.$eval(u[t]))}),"ngClass"!==t&&s.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var a=i(s.$eval(u[t]));o===e?c(a):l(a)}})}}}]}function yr(t){function e(t,e,u){y(e)?r("$pending",t,u):i("$pending",t,u),P(e)?e?(f(a.$error,t,u),l(a.$$success,t,u)):(l(a.$error,t,u),f(a.$$success,t,u)):(f(a.$error,t,u),f(a.$$success,t,u)),a.$pending?(o(ls,!0),a.$valid=a.$invalid=n,s("",null)):(o(ls,!1),a.$valid=br(a.$error),a.$invalid=!a.$valid,s("",a.$valid));var c;c=a.$pending&&a.$pending[t]?n:!a.$error[t]&&(!!a.$$success[t]||null),s(t,c),a.$$parentForm.$setValidity(t,c,a)}function r(t,e,n){a[t]||(a[t]={}),l(a[t],e,n)}function i(t,e,r){a[t]&&f(a[t],e,r),br(a[t])&&(a[t]=n)}function o(t,e){e&&!c[t]?(h.addClass(u,t),c[t]=!0):!e&&c[t]&&(h.removeClass(u,t),c[t]=!1)}function s(t,e){t=t?"-"+ct(t,"-"):"",o(ss+t,!0===e),o(as+t,!1===e)}var a=t.ctrl,u=t.$element,c={},l=t.set,f=t.unset,h=t.$animate;c[as]=!(c[ss]=u.hasClass(ss)),a.$setValidity=e}function br(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function wr(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}var xr=/^\/(.+)\/([a-z]*)$/,Cr="validity",Er=function(t){return C(t)?t.toLowerCase():t},kr=Object.prototype.hasOwnProperty,Sr=function(t){return C(t)?t.toUpperCase():t},Ar=function(t){return C(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Tr=function(t){return C(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t};"i"!=="I".toLowerCase()&&(Er=Ar,Sr=Tr);var Or,Rr,Mr,_r,Pr=[].slice,Br=[].splice,Nr=[].push,jr=Object.prototype.toString,Dr=Object.getPrototypeOf,Ir=r("ng"),Ur=t.angular||(t.angular={}),Fr=0;Or=e.documentMode,g.$inject=[],v.$inject=[];var Vr,qr=Array.isArray,Lr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Hr=function(t){return C(t)?t.trim():t},zr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Yr=function(){if(!b(Yr.rules)){var t=e.querySelector("[ng-csp]")||e.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");Yr.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else Yr.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(t){return!0}}(),noInlineStyle:!1}}return Yr.rules},Wr=function(){if(b(Wr.name_))return Wr.name_;var t,n,r,i,o=Jr.length;for(n=0;n<o;++n)if(r=Jr[n],t=e.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return Wr.name_=i},Xr=/:/g,Jr=["ng-","data-ng-","ng:","x-ng-"],Gr=/[A-Z]/g,Kr=!1,Zr=1,Qr=3,ti=8,ei=9,ni=11,ri={full:"1.4.14",major:1,minor:4,dot:14,codeName:"material-distinction"};At.expando="ng339";var ii=At.cache={},oi=1,si=function(t,e,n){t.addEventListener(e,n,!1)},ai=function(t,e,n){t.removeEventListener(e,n,!1)};At._data=function(t){return this.cache[t[this.expando]]||{}};var ui=/([\:\-\_]+(.))/g,ci=/^moz([A-Z])/,li={mouseleave:"mouseout",mouseenter:"mouseover"},fi=r("jqLite"),hi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,pi=/<|&#?\w+;/,di=/<([\w:-]+)/,gi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,vi={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};vi.optgroup=vi.option,vi.tbody=vi.tfoot=vi.colgroup=vi.caption=vi.thead,vi.th=vi.td;var mi=Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},$i=At.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===e.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),At(t).on("load",r))},toString:function(){var t=[];return o(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return Rr(t>=0?this[t]:this[this.length+t])},length:0,push:Nr,sort:[].sort,splice:[].splice},yi={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){yi[Er(t)]=t});var bi={};o("input,select,option,textarea,button,form,details".split(","),function(t){bi[t]=!0});var wi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:Pt,removeData:Mt,hasData:Ct},function(t,e){At[e]=t}),o({data:Pt,inheritedData:Ut,scope:function(t){return Rr.data(t,"$scope")||Ut(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Rr.data(t,"$isolateScope")||Rr.data(t,"$isolateScopeNoTemplate")},controller:It,injector:function(t){return Ut(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Bt,css:function(t,e,n){if(e=bt(e),!b(n))return t.style[e];t.style[e]=n},attr:function(t,e,r){var i=t.nodeType;if(i!==Qr&&2!==i&&i!==ti){var o=Er(e);if(yi[o]){if(!b(r))return t[e]||(t.attributes.getNamedItem(e)||g).specified?o:n;r?(t[e]=!0,t.setAttribute(e,o)):(t[e]=!1,t.removeAttribute(o))}else if(b(r))t.setAttribute(e,r);else if(t.getAttribute){var s=t.getAttribute(e,2);return null===s?n:s}}},prop:function(t,e,n){if(!b(n))return t[e];t[e]=n},text:function(){function t(t,e){if(y(e)){var n=t.nodeType;return n===Zr||n===Qr?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(y(e)){if(t.multiple&&"select"===I(t)){var n=[];return o(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){if(y(e))return t.innerHTML;Ot(t,!0),t.innerHTML=e},empty:Ft},function(t,e){At.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==Ft&&y(2==t.length&&t!==Bt&&t!==It?e:n)){if(w(e)){for(r=0;r<o;r++)if(t===Pt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var s=t.$dv,a=y(s)?Math.min(o,1):o,u=0;u<a;u++){var c=t(this[u],e,n);s=s?s+c:c}return s}for(r=0;r<o;r++)t(this[r],e,n);return this}}),o({removeData:Mt,on:function(t,e,r,i){if(b(i))throw fi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(xt(t)){var o=_t(t,!0),s=o.events,a=o.handle;a||(a=o.handle=zt(t,s));for(var u=e.indexOf(" ")>=0?e.split(" "):[e],c=u.length,l=function(e,n,i){var o=s[e];o||(o=s[e]=[],o.specialHandlerWrapper=n,"$destroy"===e||i||si(t,e,a)),o.push(r)};c--;)e=u[c],li[e]?(l(li[e],Wt),l(e,n,!0)):l(e)}},off:Rt,one:function(t,e,n){t=Rr(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;Ot(t),o(new At(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(t){var e=[];return o(t.childNodes,function(t){t.nodeType===Zr&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===Zr||n===ni){e=new At(e);for(var r=0,i=e.length;r<i;r++){var o=e[r];t.appendChild(o)}}},prepend:function(t,e){if(t.nodeType===Zr){var n=t.firstChild;o(new At(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){St(t,Rr(e).eq(0).clone()[0])},remove:Vt,detach:function(t){Vt(t,!0)},after:function(t,e){var n=t,r=t.parentNode;e=new At(e);for(var i=0,o=e.length;i<o;i++){var s=e[i];r.insertBefore(s,n.nextSibling),n=s}},addClass:jt,removeClass:Nt,toggleClass:function(t,e,n){e&&o(e.split(" "),function(e){var r=n;y(r)&&(r=!Bt(t,e)),(r?jt:Nt)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==ni?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:Tt,triggerHandler:function(t,e,n){var r,i,s,a=e.type||e,u=_t(t),c=u&&u.events,l=c&&c[a];l&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:g,type:a,target:t},e.type&&(r=f(r,e)),i=V(l),s=n?[r].concat(n):[r],o(i,function(e){r.isImmediatePropagationStopped()||e.apply(t,s)}))}},function(t,e){At.prototype[e]=function(e,n,r){for(var i,o=0,s=this.length;o<s;o++)y(i)?(i=t(this[o],e,n,r),b(i)&&(i=Rr(i))):Dt(i,t(this[o],e,n,r));return b(i)?i:this},At.prototype.bind=At.prototype.on,At.prototype.unbind=At.prototype.off}),Gt.prototype={put:function(t,e){this[Jt(t,this.nextUid)]=e},get:function(t){return this[Jt(t,this.nextUid)]},remove:function(t){var e=this[t=Jt(t,this.nextUid)];return delete this[t],e}};var xi=[function(){this.$get=[function(){return Gt}]}],Ci=/^[^\(]*\(\s*([^\)]*)\)/m,Ei=/,/,ki=/^\s*(_?)(\S+?)\1\s*$/,Si=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ai=r("$injector");Qt.$$annotate=Zt;var Ti=r("$animate"),Oi=1,Ri=function(){this.$get=function(){}},Mi=function(){var t=new Gt,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(t,e,n){var r=!1;return e&&(e=C(e)?e.split(" "):qr(e)?e:[],o(e,function(e){e&&(r=!0,t[e]=n)})),r}function s(){o(e,function(e){var n=t.get(e);if(n){var r=re(e.attr("class")),i="",s="";o(n,function(t,e){t!==!!r[e]&&(t?i+=(i.length?" ":"")+e:s+=(s.length?" ":"")+e)}),o(e,function(t){i&&jt(t,i),s&&Nt(t,s)}),t.remove(e)}}),e.length=0}function a(n,o,a){var u=t.get(n)||{},c=i(u,o,!0),l=i(u,a,!1);(c||l)&&(t.put(n,u),e.push(n),1===e.length&&r.$$postDigest(s))}return{enabled:g,on:g,off:g,pin:g,push:function(t,e,r,i){i&&i(),r=r||{},r.from&&t.css(r.from),r.to&&t.css(r.to),(r.addClass||r.removeClass)&&a(t,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},_i=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Ti("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null,this.$$classNameFilter)){if(new RegExp("(\\s+|\\/)ng-animate(\\s+|\\/)").test(this.$$classNameFilter.toString()))throw Ti("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=ne(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(n,r,i,o){return r=r&&Rr(r),i=i&&Rr(i),r=r||i.parent(),e(n,r,i),t.push(n,"enter",ie(o))},move:function(n,r,i,o){return r=r&&Rr(r),i=i&&Rr(i),r=r||i.parent(),e(n,r,i),t.push(n,"move",ie(o))},leave:function(e,n){return t.push(e,"leave",ie(n),function(){e.remove()})},addClass:function(e,n,r){return r=ie(r),r.addClass=ee(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return r=ie(r),r.removeClass=ee(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return i=ie(i),i.addClass=ee(i.addClass,n),i.removeClass=ee(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return o=ie(o),o.from=o.from?f(o.from,n):n,o.to=o.to?f(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=ee(o.tempClasses,i),t.push(e,"animate",o)}}}]}],Pi=function(){this.$get=["$$rAF",function(t){function e(e){n.push(e),n.length>1||t(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}var n=[];return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}]},Bi=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(t,e,n,r,i){function s(t){this.setHost(t);var e=n(),o=function(t){i(t,0,!1)};this._doneCallbacks=[],this._tick=function(t){var n=r[0];n&&n.hidden?o(t):e(t)},this._state=0}return s.chain=function(t,e){function n(){if(r===t.length)return void e(!0);t[r](function(t){if(!1===t)return void e(!1);r++,n()})}var r=0;n()},s.all=function(t,e){function n(n){i=i&&n,++r===t.length&&e(i)}var r=0,i=!0;o(t,function(t){t.done(n)})},s.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:g,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){!1===e?n():t()})})}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;0===e._state&&(e._state=1,e._tick(function(){e._resolve(t)}))},_resolve:function(t){2!==this._state&&(o(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},s}]},Ni=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){function i(){return t(function(){o(),a||u.complete(),a=!0}),u}function o(){s.addClass&&(e.addClass(s.addClass),s.addClass=null),s.removeClass&&(e.removeClass(s.removeClass),s.removeClass=null),s.to&&(e.css(s.to),s.to=null)}var s=r||{};s.$$prepared||(s=F(s)),s.cleanupStyles&&(s.from=s.to=null),s.from&&(e.css(s.from),s.from=null);var a,u=new n;return{start:i,end:i}}}]},ji=r("$compile");ce.$inject=["$provide","$$sanitizeUriProvider"];var Di=/^((?:x|data)[\:\-_])/i,Ii=r("$controller"),Ui=/^(\S+)(\s+as\s+([\w$]+))?$/,Fi=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof Rr&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},Vi="application/json",qi={"Content-Type":Vi+";charset=utf-8"},Li=/^\[|^\{(?!\{)/,Hi={"[":/]$/,"{":/}$/},zi=/^\)\]\}',?\n/,Yi=r("$http"),Wi=function(t){return function(){throw Yi("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",t)}},Xi=Ur.$interpolateMinErr=r("$interpolate");Xi.throwNoconcat=function(t){throw Xi("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",t)},Xi.interr=function(t,e){return Xi("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var Ji=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Gi={http:80,https:443,ftp:21},Ki=r("$location"),Zi={$$html5:!1,$$replace:!1,absUrl:Le("$$absUrl"),url:function(t){if(y(t))return this.$$url;var e=Ji.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Le("$$protocol"),host:Le("$$host"),port:Le("$$port"),path:He("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(C(t)||E(t))t=t.toString(),this.$$search=tt(t);else{if(!w(t))throw Ki("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=F(t,{}),o(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:y(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:He("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};o([qe,Ve,Fe],function(t){t.prototype=Object.create(Zi),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Fe||!this.$$html5)throw Ki("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=y(e)?null:e,this}});var Qi=r("$parse"),to=Function.prototype.call,eo=Function.prototype.apply,no=Function.prototype.bind,ro=gt();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){ro[t]=!0});var io={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},oo=function(t){this.options=t};oo.prototype={constructor:oo,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(e))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=ro[e],o=ro[n],s=ro[r];if(i||o||s){var a=s?r:o?n:e;this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdent:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=b(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw Qi("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=Er(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){for(var t=this.index;this.index<this.text.length;){var e=this.text.charAt(this.index);if(!this.isIdent(e)&&!this.isNumber(e))break;this.index++}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var s=this.text.substring(this.index+1,this.index+5);s.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+s+"]"),this.index+=4,n+=String.fromCharCode(parseInt(s,16))}else{n+=io[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var so=function(t,e){this.lexer=t,this.options=e};so.Program="Program",so.ExpressionStatement="ExpressionStatement",so.AssignmentExpression="AssignmentExpression",so.ConditionalExpression="ConditionalExpression",so.LogicalExpression="LogicalExpression",so.BinaryExpression="BinaryExpression",so.UnaryExpression="UnaryExpression",so.CallExpression="CallExpression",so.MemberExpression="MemberExpression",so.Identifier="Identifier",so.Literal="Literal",so.ArrayExpression="ArrayExpression",so.Property="Property",so.ObjectExpression="ObjectExpression",so.ThisExpression="ThisExpression",so.NGValueParameter="NGValueParameter",so.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:so.Program,body:t}},expressionStatement:function(){return{type:so.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:so.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:so.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:so.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:so.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:so.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:so.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:so.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:so.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:so.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.constants.hasOwnProperty(this.peek().text)?t=F(this.constants[this.consume().text]):this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:so.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:so.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:so.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:so.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do{t.push(this.expression())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:so.Identifier,name:t.text}},constant:function(){return{type:so.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:so.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:so.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:so.ObjectExpression,properties:e}},throwError:function(t,e){throw Qi("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw Qi("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw Qi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],s=o.text;if(s===e||s===n||s===r||s===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},constants:{true:{type:so.Literal,value:!0},false:{type:so.Literal,value:!1},null:{type:so.Literal,value:null},undefined:{type:so.Literal,value:n},this:{type:so.ThisExpression}}},un.prototype={compile:function(t,e){var r=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},en(i,r.$filter);var s,a="";if(this.stage="assign",s=on(i)){this.state.computing="assign";var u=this.nextId();this.recurse(s,u),this.return_(u),a="fn.assign="+this.generateFunction("assign","s,v,l")}var c=nn(i.body);r.stage="inputs",o(c,function(t,e){var n="fn"+e;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(t,i),r.return_(i),r.state.inputs.push(n),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,We,Je,Ge,Xe,Ke,Ze,Qe,t);return this.state=this.stage=n,f.literal=sn(i),f.constant=an(i),f},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return o(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return o(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,r,i,s,a){var u,c,l,f,h=this;if(i=i||g,!a&&b(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,r,i,s,!0));switch(t.type){case so.Program:o(t.body,function(e,r){h.recurse(e.expression,n,n,function(t){c=t}),r!==t.body.length-1?h.current().body.push(c,";"):h.return_(c)});break;case so.Literal:f=this.escape(t.value),this.assign(e,f),i(f);break;case so.UnaryExpression:this.recurse(t.argument,n,n,function(t){c=t}),f=t.operator+"("+this.ifDefined(c,0)+")",this.assign(e,f),i(f);break;case so.BinaryExpression:this.recurse(t.left,n,n,function(t){u=t}),this.recurse(t.right,n,n,function(t){c=t}),f="+"===t.operator?this.plus(u,c):"-"===t.operator?this.ifDefined(u,0)+t.operator+this.ifDefined(c,0):"("+u+")"+t.operator+"("+c+")",this.assign(e,f),i(f);break;case so.LogicalExpression:e=e||this.nextId(),h.recurse(t.left,e),h.if_("&&"===t.operator?e:h.not(e),h.lazyRecurse(t.right,e)),i(e);break;case so.ConditionalExpression:e=e||this.nextId(),h.recurse(t.test,e),h.if_(e,h.lazyRecurse(t.alternate,e),h.lazyRecurse(t.consequent,e)),i(e);break;case so.Identifier:e=e||this.nextId(),r&&(r.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),r.computed=!1,r.name=t.name),We(t.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",t.name)),function(){h.if_("inputs"===h.stage||"s",function(){s&&1!==s&&h.if_(h.not(h.nonComputedMember("s",t.name)),h.lazyAssign(h.nonComputedMember("s",t.name),"{}")),h.assign(e,h.nonComputedMember("s",t.name))})},e&&h.lazyAssign(e,h.nonComputedMember("l",t.name))),(h.state.expensiveChecks||ln(t.name))&&h.addEnsureSafeObject(e),i(e);break;case so.MemberExpression:u=r&&(r.context=this.nextId())||this.nextId(),e=e||this.nextId(),h.recurse(t.object,u,n,function(){h.if_(h.notNull(u),function(){s&&1!==s&&h.addEnsureSafeAssignContext(u),t.computed?(c=h.nextId(),h.recurse(t.property,c),h.getStringValue(c),h.addEnsureSafeMemberName(c),s&&1!==s&&h.if_(h.not(h.computedMember(u,c)),h.lazyAssign(h.computedMember(u,c),"{}")),f=h.ensureSafeObject(h.computedMember(u,c)),h.assign(e,f),r&&(r.computed=!0,r.name=c)):(We(t.property.name),s&&1!==s&&h.if_(h.not(h.nonComputedMember(u,t.property.name)),h.lazyAssign(h.nonComputedMember(u,t.property.name),"{}")),f=h.nonComputedMember(u,t.property.name),(h.state.expensiveChecks||ln(t.property.name))&&(f=h.ensureSafeObject(f)),h.assign(e,f),r&&(r.computed=!1,r.name=t.property.name))},function(){h.assign(e,"undefined")}),i(e)},!!s);break;case so.CallExpression:e=e||this.nextId(),t.filter?(c=h.filter(t.callee.name),l=[],o(t.arguments,function(t){var e=h.nextId();h.recurse(t,e),l.push(e)}),f=c+"("+l.join(",")+")",h.assign(e,f),i(e)):(c=h.nextId(),u={},l=[],h.recurse(t.callee,c,u,function(){h.if_(h.notNull(c),function(){h.addEnsureSafeFunction(c),o(t.arguments,function(t){h.recurse(t,h.nextId(),n,function(t){l.push(h.ensureSafeObject(t))})}),u.name?(h.state.expensiveChecks||h.addEnsureSafeObject(u.context),f=h.member(u.context,u.name,u.computed)+"("+l.join(",")+")"):f=c+"("+l.join(",")+")",f=h.ensureSafeObject(f),h.assign(e,f)},function(){h.assign(e,"undefined")}),i(e)}));break;case so.AssignmentExpression:if(c=this.nextId(),u={},!rn(t.left))throw Qi("lval","Trying to assign a value to a non l-value");this.recurse(t.left,n,u,function(){h.if_(h.notNull(u.context),function(){h.recurse(t.right,c),h.addEnsureSafeObject(h.member(u.context,u.name,u.computed)),h.addEnsureSafeAssignContext(u.context),f=h.member(u.context,u.name,u.computed)+t.operator+c,h.assign(e,f),i(e||f)})},1);break;case so.ArrayExpression:l=[],o(t.elements,function(t){h.recurse(t,h.nextId(),n,function(t){l.push(t)})}),f="["+l.join(",")+"]",this.assign(e,f),i(f);break;case so.ObjectExpression:l=[],o(t.properties,function(t){h.recurse(t.value,h.nextId(),n,function(e){l.push(h.escape(t.key.type===so.Identifier?t.key.name:""+t.key.value)+":"+e)})}),f="{"+l.join(",")+"}",this.assign(e,f),i(f);break;case so.ThisExpression:this.assign(e,"s"),i("s");break;case so.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(!0===t)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return t+"."+e},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+",text)")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var s=this;return function(){s.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(C(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(E(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw Qi("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},cn.prototype={compile:function(t,e){var n=this,r=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,en(r,n.$filter);var i,s;(i=on(r))&&(s=this.recurse(i));var a,u=nn(r.body);u&&(a=[],o(u,function(t,e){var r=n.recurse(t);t.input=r,a.push(r),t.watchId=e}));var c=[];o(r.body,function(t){c.push(n.recurse(t.expression))});var l=0===r.body.length?function(){}:1===r.body.length?c[0]:function(t,e){var n;return o(c,function(r){n=r(t,e)}),n};return s&&(l.assign=function(t,e,n){return s(t,n,e)}),a&&(l.inputs=a),l.literal=sn(r),l.constant=an(r),l},recurse:function(t,e,r){var i,s,a,u=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case so.Literal:return this.value(t.value,e);case so.UnaryExpression:return s=this.recurse(t.argument),this["unary"+t.operator](s,e);case so.BinaryExpression:case so.LogicalExpression:return i=this.recurse(t.left),s=this.recurse(t.right),this["binary"+t.operator](i,s,e);case so.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case so.Identifier:return We(t.name,u.expression),u.identifier(t.name,u.expensiveChecks||ln(t.name),e,r,u.expression);case so.MemberExpression:return i=this.recurse(t.object,!1,!!r),t.computed||(We(t.property.name,u.expression),s=t.property.name),t.computed&&(s=this.recurse(t.property)),t.computed?this.computedMember(i,s,e,r,u.expression):this.nonComputedMember(i,s,u.expensiveChecks,e,r,u.expression);case so.CallExpression:return a=[],o(t.arguments,function(t){a.push(u.recurse(t))}),t.filter&&(s=this.$filter(t.callee.name)),t.filter||(s=this.recurse(t.callee,!0)),t.filter?function(t,r,i,o){for(var u=[],c=0;c<a.length;++c)u.push(a[c](t,r,i,o));var l=s.apply(n,u,o);return e?{context:n,name:n,value:l}:l}:function(t,n,r,i){var o,c=s(t,n,r,i);if(null!=c.value){Je(c.context,u.expression),Ge(c.value,u.expression);for(var l=[],f=0;f<a.length;++f)l.push(Je(a[f](t,n,r,i),u.expression));o=Je(c.value.apply(c.context,l),u.expression)}return e?{value:o}:o};case so.AssignmentExpression:return i=this.recurse(t.left,!0,1),s=this.recurse(t.right),function(t,n,r,o){var a=i(t,n,r,o),c=s(t,n,r,o);return Je(a.value,u.expression),Ke(a.context),a.context[a.name]=c,e?{value:c}:c};case so.ArrayExpression:return a=[],o(t.elements,function(t){a.push(u.recurse(t))}),function(t,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](t,n,r,i));return e?{value:o}:o};case so.ObjectExpression:return a=[],o(t.properties,function(t){a.push({key:t.key.type===so.Identifier?t.key.name:""+t.key.value,value:u.recurse(t.value)})}),function(t,n,r,i){for(var o={},s=0;s<a.length;++s)o[a[s].key]=a[s].value(t,n,r,i);return e?{value:o}:o};case so.ThisExpression:return function(t){return e?{value:t}:t};case so.NGValueParameter:return function(t,n,r,i){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){var s=t(n,r,i,o);return s=b(s)?+s:0,e?{value:s}:s}},"unary-":function(t,e){return function(n,r,i,o){var s=t(n,r,i,o);return s=b(s)?-s:0,e?{value:s}:s}},"unary!":function(t,e){return function(n,r,i,o){var s=!t(n,r,i,o);return e?{value:s}:s}},"binary+":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s),u=e(r,i,o,s),c=Qe(a,u);return n?{value:c}:c}},"binary-":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s),u=e(r,i,o,s),c=(b(a)?a:0)-(b(u)?u:0);return n?{value:c}:c}},"binary*":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)*e(r,i,o,s);return n?{value:a}:a}},"binary/":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)/e(r,i,o,s);return n?{value:a}:a}},"binary%":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)%e(r,i,o,s);return n?{value:a}:a}},"binary===":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)===e(r,i,o,s);return n?{value:a}:a}},"binary!==":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)!==e(r,i,o,s);return n?{value:a}:a}},"binary==":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)==e(r,i,o,s);return n?{value:a}:a}},"binary!=":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)!=e(r,i,o,s);return n?{value:a}:a}},"binary<":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)<e(r,i,o,s);return n?{value:a}:a}},"binary>":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)>e(r,i,o,s);return n?{value:a}:a}},"binary<=":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)<=e(r,i,o,s);return n?{value:a}:a}},"binary>=":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)>=e(r,i,o,s);return n?{value:a}:a}},"binary&&":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)&&e(r,i,o,s);return n?{value:a}:a}},"binary||":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)||e(r,i,o,s);return n?{value:a}:a}},"ternary?:":function(t,e,n,r){return function(i,o,s,a){var u=t(i,o,s,a)?e(i,o,s,a):n(i,o,s,a);return r?{value:u}:u}},value:function(t,e){return function(){return e?{context:n,name:n,value:t}:t}},identifier:function(t,e,r,i,o){return function(s,a,u,c){var l=a&&t in a?a:s;i&&1!==i&&l&&!l[t]&&(l[t]={});var f=l?l[t]:n;return e&&Je(f,o),r?{context:l,name:t,value:f}:f}},computedMember:function(t,e,n,r,i){return function(o,s,a,u){var c,l,f=t(o,s,a,u);return null!=f&&(c=e(o,s,a,u),c=Xe(c),We(c,i),r&&1!==r&&(Ke(f),f&&!f[c]&&(f[c]={})),l=f[c],Je(l,i)),n?{context:f,name:c,value:l}:l}},nonComputedMember:function(t,e,r,i,o,s){return function(a,u,c,l){var f=t(a,u,c,l);o&&1!==o&&(Ke(f),f&&!f[e]&&(f[e]={}));var h=null!=f?f[e]:n;return(r||ln(e))&&Je(h,s),i?{context:f,name:e,value:h}:h}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var ao=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new so(this.lexer),this.astCompiler=n.csp?new cn(this.ast,e):new un(this.ast,e)};ao.prototype={constructor:ao,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var uo=Object.prototype.valueOf,co=r("$sce"),lo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ji=r("$compile"),fo=e.createElement("a"),ho=An(t.location.href);Rn.$inject=["$document"],_n.$inject=["$provide"];var po=22,go=".",vo="0";Dn.$inject=["$locale"],In.$inject=["$locale"];var mo={yyyy:Ln("FullYear",4),yy:Ln("FullYear",2,0,!0),y:Ln("FullYear",1),MMMM:Hn("Month"),MMM:Hn("Month",!0),MM:Ln("Month",2,1),M:Ln("Month",1,1),dd:Ln("Date",2),d:Ln("Date",1),HH:Ln("Hours",2),H:Ln("Hours",1),hh:Ln("Hours",2,-12),h:Ln("Hours",1,-12),mm:Ln("Minutes",2),m:Ln("Minutes",1),ss:Ln("Seconds",2),s:Ln("Seconds",1),sss:Ln("Milliseconds",3),EEEE:Hn("Day"),EEE:Hn("Day",!0),a:Jn,Z:zn,ww:Xn(2),w:Xn(1),G:Gn,GG:Gn,GGG:Gn,GGGG:Kn},$o=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,yo=/^\-?\d+$/;Zn.$inject=["$locale"];var bo=m(Er),wo=m(Sr);er.$inject=["$parse"];var xo=m({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===jr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Co={};o(yi,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=le("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),Co[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(wi,function(t,e){Co[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(xr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),o(["src","srcset","href"],function(t){var e=le("ng-"+t);Co[e]=function(){return{priority:99,link:function(n,r,i){var o=t,s=t;"href"===t&&"[object SVGAnimatedString]"===jr.call(r.prop("href"))&&(s="xlinkHref",i.$attr[s]="xlink:href",o=null),i.$observe(e,function(e){if(!e)return void("href"===t&&i.$set(s,null));i.$set(s,e),Or&&o&&r.prop(o,i[s])})}}}});var Eo={$addControl:g,$$renameControl:rr,$removeControl:g,$setValidity:g,$setDirty:g,$setPristine:g,$setSubmitted:g},ko="ng-submitted";ir.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var So=function(t){return["$timeout","$parse",function(e,r){function i(t){return""===t?r('this[""]').assign:r(t).assign||g}return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:ir,compile:function(r,o){r.addClass(us).addClass(ss);var s=o.name?"name":!(!t||!o.ngForm)&&"ngForm";return{pre:function(t,r,o,a){var u=a[0];if(!("action"in o)){var c=function(e){t.$apply(function(){u.$commitViewValue(),u.$setSubmitted()}),e.preventDefault()};si(r[0],"submit",c),r.on("$destroy",function(){e(function(){ai(r[0],"submit",c)},0,!1)})}(a[1]||u.$$parentForm).$addControl(u);var l=s?i(u.$name):g;s&&(l(t,u),o.$observe(s,function(e){u.$name!==e&&(l(t,n),u.$$parentForm.$$renameControl(u,e),(l=i(u.$name))(t,u))})),r.on("$destroy",function(){u.$$parentForm.$removeControl(u),l(t,n),f(u,Eo)})}}}}}]},Ao=So(),To=So(!0),Oo=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Ro=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Mo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,_o=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Po=/^(\d{4})-(\d{2})-(\d{2})$/,Bo=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,No=/^(\d{4})-W(\d\d)$/,jo=/^(\d{4})-(\d\d)$/,Do=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Io="keydown wheel mousedown",Uo=gt();o("date,datetime-local,month,time,week".split(","),function(t){Uo[t]=!0});var Fo={text:sr,date:lr("date",Po,cr(Po,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":lr("datetimelocal",Bo,cr(Bo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:lr("time",Do,cr(Do,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:lr("week",No,ur,"yyyy-Www"),month:lr("month",jo,cr(jo,["yyyy","MM"]),"yyyy-MM"),number:hr,url:pr,email:dr,radio:gr,checkbox:mr,hidden:g,button:g,submit:g,reset:g,file:g},Vo=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,s,a){a[0]&&(Fo[Er(s.type)]||Fo.text)(i,o,s,a[0],e,t,n,r)}}}}],qo=/^(true|false|\d+)$/,Lo=function(){return{restrict:"A",priority:100,compile:function(t,e){return qo.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Ho=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=y(t)?"":t})}}}}],zo=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=y(t)?"":t})}}}}],Yo=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),s=e(i.ngBindHtml,function(e){return t.valueOf(e)});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(s,function(){var n=o(e);r.html(t.getTrustedHtml(n)||"")})}}}}],Wo=m({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),Xo=$r("",!0),Jo=$r("Odd",0),Go=$r("Even",1),Ko=nr({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),Zo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Qo={},ts={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=le("ng-"+t);Qo[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var s=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){s(e,{$event:n})};ts[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var es=["$animate",function(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,s){var a,u,c;n.$watch(i.ngIf,function(n){n?u||s(function(n,o){u=o,n[n.length++]=e.createComment(" end ngIf: "+i.ngIf+" "),a={clone:n},t.enter(n,r.parent(),r)}):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),a&&(c=dt(a.clone),t.leave(c).then(function(){c=null}),a=null))})}}}],ns=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ur.noop,compile:function(r,i){var o=i.ngInclude||i.src,s=i.onload||"",a=i.autoscroll;return function(r,i,u,c,l){var f,h,p,d=0,g=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).then(function(){h=null}),h=p,p=null)};r.$watch(o,function(o){var u=function(){!b(a)||a&&!r.$eval(a)||e()},h=++d;o?(t(o,!0).then(function(t){if(!r.$$destroyed&&h===d){var e=r.$new();c.template=t;var a=l(e,function(t){g(),n.enter(t,null,i).then(u)});f=e,p=a,f.$emit("$includeContentLoaded",o),r.$eval(s)}},function(){r.$$destroyed||h===d&&(g(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(g(),c.template=null)})}}}}],rs=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(/SVG/.test(r[0].toString()))return r.empty(),void t(Et(o.template,e).childNodes)(n,function(t){r.append(t)},{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],is=nr({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),os=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,r,i){var s=e.attr(r.$attr.ngList)||", ",a="false"!==r.ngTrim,u=a?Hr(s):s,c=function(t){if(!y(t)){var e=[];return t&&o(t.split(u),function(t){t&&e.push(a?Hr(t):t)}),e}};i.$parsers.push(c),i.$formatters.push(function(t){return qr(t)?t.join(s):n}),i.$isEmpty=function(t){return!t||!t.length}}}},ss="ng-valid",as="ng-invalid",us="ng-pristine",cs="ng-dirty",ls="ng-pending",fs=r("ngModel"),hs=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,r,i,s,a,u,c,l,f){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=n,this.$name=f(r.name||"",!1)(t),this.$$parentForm=Eo;var h,p=s(r.ngModel),d=p.assign,v=p,m=d,$=null,w=this;this.$$setOptions=function(t){if(w.$options=t,t&&t.getterSetter){var e=s(r.ngModel+"()"),n=s(r.ngModel+"($$$p)");v=function(t){var n=p(t);return S(n)&&(n=e(t)),n},m=function(t,e){S(p(t))?n(t,{$$$p:w.$modelValue}):d(t,w.$modelValue)}}else if(!p.assign)throw fs("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,Z(i))},this.$render=g,this.$isEmpty=function(t){return y(t)||""===t||null===t||t!==t};var x=0;yr({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:a}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,a.removeClass(i,cs),a.addClass(i,us)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,a.removeClass(i,us),a.addClass(i,cs),w.$$parentForm.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,a.setClass(i,"ng-untouched","ng-touched")},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,a.setClass(i,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){u.cancel($),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!E(w.$modelValue)||!isNaN(w.$modelValue)){var t=w.$$lastCommittedViewValue,e=w.$$rawModelValue,r=w.$valid,i=w.$modelValue,o=w.$options&&w.$options.allowInvalid;w.$$runValidators(e,t,function(t){o||r===t||(w.$modelValue=t?e:n,w.$modelValue!==i&&w.$$writeModelToScope())})}},this.$$runValidators=function(t,e,r){function i(t,e){a===x&&w.$setValidity(t,e)}function s(t){a===x&&r(t)}x++;var a=x;return function(){var t=w.$$parserName||"parse";return y(h)?(i(t,null),!0):(h||(o(w.$validators,function(t,e){i(e,null)}),o(w.$asyncValidators,function(t,e){i(e,null)})),i(t,h),h)}()&&function(){var n=!0;return o(w.$validators,function(r,o){var s=r(t,e);n=n&&s,i(o,s)}),!!n||(o(w.$asyncValidators,function(t,e){i(e,null)}),!1)}()?void function(){var r=[],a=!0;o(w.$asyncValidators,function(o,s){var u=o(t,e);if(!B(u))throw fs("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",u);i(s,n),r.push(u.then(function(){i(s,!0)},function(t){a=!1,i(s,!1)}))}),r.length?l.all(r).then(function(){s(a)},g):s(!0)}():void s(!1)},this.$commitViewValue=function(){var t=w.$viewValue;u.cancel($),(w.$$lastCommittedViewValue!==t||""===t&&w.$$hasNativeValidators)&&(w.$$lastCommittedViewValue=t,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){w.$modelValue!==s&&w.$$writeModelToScope()}var r=w.$$lastCommittedViewValue,i=r;if(h=!y(i)||n)for(var o=0;o<w.$parsers.length;o++)if(i=w.$parsers[o](i),y(i)){h=!1;break}E(w.$modelValue)&&isNaN(w.$modelValue)&&(w.$modelValue=v(t));var s=w.$modelValue,a=w.$options&&w.$options.allowInvalid;w.$$rawModelValue=i,a&&(w.$modelValue=i,e()),w.$$runValidators(i,w.$$lastCommittedViewValue,function(t){a||(w.$modelValue=t?i:n,e())})},this.$$writeModelToScope=function(){m(t,w.$modelValue),o(w.$viewChangeListeners,function(t){try{t()}catch(t){e(t)}})},this.$setViewValue=function(t,e){w.$viewValue=t,w.$options&&!w.$options.updateOnDefault||w.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,r=0,i=w.$options;i&&b(i.debounce)&&(n=i.debounce,E(n)?r=n:E(n[e])?r=n[e]:E(n.default)&&(r=n.default)),u.cancel($),r?$=u(function(){w.$commitViewValue()},r):c.$$phase?w.$commitViewValue():t.$apply(function(){w.$commitViewValue()})},t.$watch(function(){var e=v(t);if(e!==w.$modelValue&&(w.$modelValue===w.$modelValue||e===e)){w.$modelValue=w.$$rawModelValue=e,h=n;for(var r=w.$formatters,i=r.length,o=e;i--;)o=r[i](o);w.$viewValue!==o&&(w.$viewValue=w.$$lastCommittedViewValue=o,w.$render(),w.$$runValidators(e,o,g))}return e})}],ps=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:hs,priority:1,compile:function(e){return e.addClass(us).addClass("ng-untouched").addClass(ss),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)}),t.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(e,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(n){o.$touched||(t.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))})}}}}}],ds=/(\s+|^)default(\s+|$)/,gs=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=F(t.$eval(e.ngModelOptions)),b(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Hr(this.$options.updateOn.replace(ds,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},vs=nr({terminal:!0,priority:1e3}),ms=r("ngOptions"),$s=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,ys=["$compile","$parse",function(t,n){function r(t,e,r){function o(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function s(t){var e;if(!c&&i(t))e=t;else{e=[];for(var n in t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n)}return e}var a=t.match($s);if(!a)throw ms("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Z(e));var u=a[5]||a[7],c=a[6],l=/ as /.test(a[0])&&a[1],f=a[9],h=n(a[2]?a[1]:u),p=l&&n(l),d=p||h,g=f&&n(f),v=f?function(t,e){return g(r,e)}:function(t){return Jt(t)},m=function(t,e){return v(t,C(t,e))},$=n(a[2]||a[1]),y=n(a[3]||""),b=n(a[4]||""),w=n(a[8]),x={},C=c?function(t,e){return x[c]=e,x[u]=t,x}:function(t){return x[u]=t,x};return{trackBy:f,getTrackByValue:m,getWatchables:n(w,function(t){var e=[];t=t||[];for(var n=s(t),i=n.length,o=0;o<i;o++){var u=t===n?o:n[o],c=(t[u],C(t[u],u)),l=v(t[u],c);if(e.push(l),a[2]||a[1]){var f=$(r,c);e.push(f)}if(a[4]){var h=b(r,c);e.push(h)}}return e}),getOptions:function(){for(var t=[],e={},n=w(r)||[],i=s(n),a=i.length,u=0;u<a;u++){var c=n===i?u:i[u],l=n[c],h=C(l,c),p=d(r,h),g=v(p,h),x=$(r,h),E=y(r,h),k=b(r,h),S=new o(g,p,x,E,k);t.push(S),e[g]=S}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[m(t)]},getViewValueFromOption:function(t){return f?Ur.copy(t.viewValue):t.viewValue}}}}}function s(e,n,i,s){function c(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),t.value!==e.value&&(e.value=t.selectValue)}function l(t,e,n,r){var i;return e&&Er(e.nodeName)===n?i=e:(i=r.cloneNode(!1),e?t.insertBefore(i,e):t.appendChild(i)),i}function f(t){for(var e;t;)e=t.nextSibling,Vt(t),t=e}function h(t){var e=g&&g[0],n=x&&x[0];if(e||n)for(;t&&(t===e||t===n||t.nodeType===ti||"option"===I(t)&&""===t.value);)t=t.nextSibling;return t}function p(){var t=C&&v.readValue();C=E.getOptions();var e={},r=n[0].firstChild;if(w&&n.prepend(g),r=h(r),C.items.forEach(function(t){var i,o,s;t.group?(i=e[t.group],i||(o=l(n[0],r,"optgroup",u),r=o.nextSibling,o.label=t.group,i=e[t.group]={groupElement:o,currentOptionElement:o.firstChild}),s=l(i.groupElement,i.currentOptionElement,"option",a),c(t,s),i.currentOptionElement=s.nextSibling):(s=l(n[0],r,"option",a),c(t,s),r=s.nextSibling)}),Object.keys(e).forEach(function(t){f(e[t].currentOptionElement)}),f(r),d.$render(),!d.$isEmpty(t)){var i=v.readValue();(E.trackBy||m?q(t,i):t===i)||(d.$setViewValue(i),d.$render())}}var d=s[1];if(d){for(var g,v=s[0],m=i.multiple,$=0,y=n.children(),b=y.length;$<b;$++)if(""===y[$].value){g=y.eq($);break}var w=!!g,x=Rr(a.cloneNode(!1));x.val("?");var C,E=r(i.ngOptions,n,e),k=function(){w||n.prepend(g),n.val(""),g.prop("selected",!0),g.attr("selected",!0)},S=function(){w||g.remove()},A=function(){n.prepend(x),n.val("?"),x.prop("selected",!0),x.attr("selected",!0)},T=function(){x.remove()};m?(d.$isEmpty=function(t){return!t||0===t.length},v.writeValue=function(t){C.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){var e=C.getOptionFromViewValue(t);e&&!e.disabled&&(e.element.selected=!0)})},v.readValue=function(){var t=n.val()||[],e=[];return o(t,function(t){var n=C.selectValueMap[t];n&&!n.disabled&&e.push(C.getViewValueFromOption(n))}),e},E.trackBy&&e.$watchCollection(function(){if(qr(d.$viewValue))return d.$viewValue.map(function(t){return E.getTrackByValue(t)})},function(){d.$render()})):(v.writeValue=function(t){var e=C.getOptionFromViewValue(t);e&&!e.disabled?(n[0].value!==e.selectValue&&(T(),S(),n[0].value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):null===t||w?(T(),k()):(S(),A())},v.readValue=function(){var t=C.selectValueMap[n.val()];return t&&!t.disabled?(S(),T(),C.getViewValueFromOption(t)):null},E.trackBy&&e.$watch(function(){return E.getTrackByValue(d.$viewValue)},function(){d.$render()})),w?(g.remove(),t(g)(e),g.removeClass("ng-scope")):g=Rr(a.cloneNode(!1)),p(),e.$watchCollection(E.getWatchables,p)}}var a=e.createElement("option"),u=e.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=g},post:s}}}],bs=["$locale","$interpolate","$log",function(t,e,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(s,a,u){function c(t){a.text(t||"")}var l,f=u.count,h=u.$attr.when&&a.attr(u.$attr.when),p=u.offset||0,d=s.$eval(h)||{},v={},m=e.startSymbol(),$=e.endSymbol(),b=m+f+"-"+p+$,w=Ur.noop;o(u,function(t,e){var n=i.exec(e);if(n){var r=(n[1]?"-":"")+Er(n[2]);d[r]=a.attr(u.$attr[e])}}),o(d,function(t,n){v[n]=e(t.replace(r,b))}),s.$watch(f,function(e){var r=parseFloat(e),i=isNaN(r);if(i||r in d||(r=t.pluralCat(r-p)),r!==l&&!(i&&E(l)&&isNaN(l))){w();var o=v[r];y(o)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),w=g,c()):w=s.$watch(o,c),l=r}})}}}],ws=["$parse","$animate",function(t,s){var a=r("ngRepeat"),u=function(t,e,n,r,i,o,s){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===s-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))},c=function(t){return t.clone[0]},l=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,f){var h=f.ngRepeat,p=e.createComment(" end ngRepeat: "+h+" "),d=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw a("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);var g=d[1],v=d[2],m=d[3],$=d[4];if(!(d=g.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)))throw a("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);var y=d[3]||d[1],b=d[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw a("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",m);var w,x,C,E,k={$id:Jt};return $?w=t($):(C=function(t,e){return Jt(e)},E=function(t){return t}),function(t,e,r,f,d){w&&(x=function(e,n,r){return b&&(k[b]=e),k[y]=n,k.$index=r,w(t,k)});var g=gt();t.$watchCollection(v,function(r){var f,v,$,w,k,S,A,T,O,R,M,_,P=e[0],B=gt();if(m&&(t[m]=r),i(r))O=r,T=x||C;else{T=x||E,O=[];for(var N in r)kr.call(r,N)&&"$"!==N.charAt(0)&&O.push(N)}for(w=O.length,M=new Array(w),f=0;f<w;f++)if(k=r===O?f:O[f],S=r[k],A=T(k,S,f),g[A])R=g[A],delete g[A],B[A]=R,M[f]=R;else{if(B[A])throw o(M,function(t){t&&t.scope&&(g[t.id]=t)}),a("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,A,S);M[f]={id:A,scope:n,clone:n},B[A]=!0}for(var j in g){if(R=g[j],_=dt(R.clone),s.leave(_),_[0].parentNode)for(f=0,v=_.length;f<v;f++)_[f].$$NG_REMOVED=!0;R.scope.$destroy()}for(f=0;f<w;f++)if(k=r===O?f:O[f],S=r[k],R=M[f],R.scope){$=P;do{$=$.nextSibling}while($&&$.$$NG_REMOVED);c(R)!=$&&s.move(dt(R.clone),null,P),P=l(R),u(R.scope,f,y,S,b,k,w)}else d(function(t,e){R.scope=e;var n=p.cloneNode(!1);t[t.length++]=n,s.enter(t,null,P),P=n,R.clone=t,B[R.id]=R,u(R.scope,f,y,S,b,k,w)});g=B})}}}}],xs=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Cs=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Es=nr(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&o(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),ks=["$animate",function(t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,s){var a=i.ngSwitch||i.on,u=[],c=[],l=[],f=[],h=function(t,e){return function(){t.splice(e,1)}};n.$watch(a,function(n){var r,i;for(r=0,i=l.length;r<i;++r)t.cancel(l[r]);for(l.length=0,r=0,i=f.length;r<i;++r){var a=dt(c[r].clone);f[r].$destroy();(l[r]=t.leave(a)).then(h(l,r))}c.length=0,f.length=0,(u=s.cases["!"+n]||s.cases["?"])&&o(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=e.createComment(" end ngSwitchWhen: ");var s={clone:r};c.push(s),t.enter(r,o.parent(),o)})})})}}}],Ss=nr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),As=nr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),Ts=nr({restrict:"EAC",link:function(t,e,n,i,o){if(!o)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Z(e));o(function(t){e.empty(),e.append(t)})}}),Os=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"==n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],Rs={$setViewValue:g,$render:g},Ms=["$element","$scope","$attrs",function(t,r,i){var o=this,s=new Gt;o.ngModelCtrl=Rs,o.unknownOption=Rr(e.createElement("option")),o.renderUnknownOption=function(e){var n="? "+Jt(e)+" ?";o.unknownOption.val(n),t.prepend(o.unknownOption),t.val(n)},r.$on("$destroy",function(){o.renderUnknownOption=g}),o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.readValue=function(){return o.removeUnknownOption(),t.val()},o.writeValue=function(e){o.hasOption(e)?(o.removeUnknownOption(),t.val(e),""===e&&o.emptyOption.prop("selected",!0)):null==e&&o.emptyOption?(o.removeUnknownOption(),t.val("")):o.renderUnknownOption(e)},o.addOption=function(t,e){if(e[0].nodeType!==ti){ht(t,'"option value"'),""===t&&(o.emptyOption=e);var n=s.get(t)||0;s.put(t,n+1),o.ngModelCtrl.$render(),wr(e)}},o.removeOption=function(t){var e=s.get(t);e&&(1===e?(s.remove(t),""===t&&(o.emptyOption=n)):s.put(t,e-1))},o.hasOption=function(t){return!!s.get(t)},o.registerOption=function(t,e,n,r,i){if(r){var s;n.$observe("value",function(t){b(s)&&o.removeOption(s),s=t,o.addOption(t,e)})}else i?t.$watch(i,function(t,r){n.$set("value",t),r!==t&&o.removeOption(r),o.addOption(t,e)}):o.addOption(n.value,e);e.on("$destroy",function(){o.removeOption(n.value),o.ngModelCtrl.$render()})}}],_s=function(){function t(t,e,n,r){var i=r[1];if(i){var s=r[0];if(s.ngModelCtrl=i,e.on("change",function(){t.$apply(function(){i.$setViewValue(s.readValue())})}),n.multiple){s.readValue=function(){var t=[];return o(e.find("option"),function(e){e.selected&&t.push(e.value)}),t},s.writeValue=function(t){var n=new Gt(t);o(e.find("option"),function(t){t.selected=b(n.get(t.value))})};var a,u=NaN;t.$watch(function(){u!==i.$viewValue||q(a,i.$viewValue)||(a=V(i.$viewValue),i.$render()),u=i.$viewValue}),i.$isEmpty=function(t){return!t||0===t.length}}}}function e(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Ms,priority:1,link:{pre:t,post:e}}},Ps=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){if(b(n.value))var r=t(n.value,!0);else{var i=t(e.text(),!0);i||n.$set("value",e.text())}return function(t,e,n){var o=e.parent(),s=o.data("$selectController")||o.parent().data("$selectController");s&&s.registerOption(t,e,n,r,i)}}}}],Bs=m({restrict:"E",terminal:!1}),Ns=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},js=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,i,o){if(o){var s,a=i.ngPattern||i.pattern;i.$observe("pattern",function(t){if(C(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,t,Z(e));s=t||n,o.$validate()}),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||y(s)||s.test(e)}}}}},Ds=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=p(t);i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},Is=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=p(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};if(t.angular.bootstrap)return void(t.console&&console.log("WARNING: Tried to load angular more than once."));!function(){var e;if(!Kr){var r=Wr();Mr=y(r)?t.jQuery:r?t[r]:n,Mr&&Mr.fn.on?(Rr=Mr,f(Mr.fn,{scope:$i.scope,isolateScope:$i.isolateScope,controller:$i.controller,injector:$i.injector,inheritedData:$i.inheritedData}),e=Mr.cleanData,Mr.cleanData=function(t){var n;if(Vr)Vr=!1;else for(var r,i=0;null!=(r=t[i]);i++)(n=Mr._data(r,"events"))&&n.$destroy&&Mr(r).triggerHandler("$destroy");e(t)}):Rr=At,Ur.element=Rr,Kr=!0}}(),function(e){f(e,{bootstrap:st,copy:F,extend:f,merge:h,equals:q,element:Rr,forEach:o,injector:Qt,noop:g,bind:z,toJson:W,fromJson:X,identity:v,isUndefined:y,isDefined:b,isString:C,isFunction:S,isObject:w,isNumber:E,isElement:j,isArray:qr,version:ri,isDate:k,lowercase:Er,uppercase:Sr,callbacks:{counter:0},getTestability:ut,$$minErr:r,$$csp:Yr,reloadWithDebugInfo:at}),(_r=vt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:$n}),t.provider("$compile",ce).directive({a:xo,input:Vo,textarea:Vo,form:Ao,script:Os,select:_s,style:Bs,option:Ps,ngBind:Ho,ngBindHtml:Yo,ngBindTemplate:zo,ngClass:Xo,ngClassEven:Go,ngClassOdd:Jo,ngCloak:Ko,ngController:Zo,ngForm:To,ngHide:Cs,ngIf:es,ngInclude:ns,ngInit:is,ngNonBindable:vs,ngPluralize:bs,ngRepeat:ws,ngShow:xs,ngStyle:Es,ngSwitch:ks,ngSwitchWhen:Ss,ngSwitchDefault:As,ngOptions:ys,ngTransclude:Ts,ngModel:ps,ngList:os,ngChange:Wo,pattern:js,ngPattern:js,required:Ns,ngRequired:Ns,minlength:Is,ngMinlength:Is,maxlength:Ds,ngMaxlength:Ds,ngValue:Lo,ngModelOptions:gs}).directive({ngInclude:rs}).directive(Co).directive(Qo),t.provider({$anchorScroll:te,$animate:_i,$animateCss:Ni,$$animateJs:Ri,$$animateQueue:Mi,$$AnimateRunner:Bi,$$animateAsyncRun:Pi,$browser:se,$cacheFactory:ae,$controller:de,$document:ge,$exceptionHandler:ve,$filter:_n,$$forceReflow:Fi,$interpolate:Re,$interval:Me,$http:Se,$httpParamSerializer:$e,$httpParamSerializerJQLike:ye,$httpBackend:Te,$xhrFactory:Ae,$location:ze,$log:Ye,$parse:hn,$rootScope:mn,$q:pn,$$q:dn,$sce:xn,$sceDelegate:wn,$sniffer:Cn,$templateCache:ue,$templateRequest:En,$$testability:kn,$timeout:Sn,$window:On,$$rAF:vn,$$jqLite:Xt,$$HashMap:xi,$$cookieReader:Mn})}])}(Ur),Ur.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return-1==e?0:t.length-e-1}function r(t,r){var i=r;n===i&&(i=Math.min(e(t),3));var o=Math.pow(10,i);return{v:i,f:(t*o|0)%o}}var i={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var n=0|t,o=r(t,e);return 1==n&&0==o.v?i.ONE:i.OTHER}})}]),Rr(e).ready(function(){ot(e,st)})}(window,document),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>')},function(t,e,n){n(28),t.exports="ngRoute"},function(t,e){/**
 * @license AngularJS v1.4.14
 * (c) 2010-2015 Google, Inc. http://angularjs.org
 * License: MIT
 */
!function(t,e,n){"use strict";function r(){function t(t,n){return e.extend(Object.create(t),n)}function n(t,e){var n=e.caseInsensitiveMatch,r={originalPath:t,regexp:t},i=r.keys=[];return t=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(t,e,n,r){var o="?"===r||"*?"===r?"?":null,s="*"===r||"*?"===r?"*":null;return i.push({name:n,optional:!!o}),e=e||"",(o?"":e)+"(?:"+(o?e:"")+(s&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+t+"$",n?"i":""),r}var r={};this.when=function(t,i){var o=e.copy(i);if(e.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),e.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[t]=e.extend(o,t&&n(t,o)),t){var s="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/";r[s]=e.extend({redirectTo:t},n(s,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return"string"==typeof t&&(t={redirectTo:t}),this.when(null,t),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,o,s,a,c,l){function f(t,e){var n=e.keys,r={};if(!e.regexp)return null;var i=e.regexp.exec(t);if(!i)return null;for(var o=1,s=i.length;o<s;++o){var a=n[o-1],u=i[o];a&&u&&(r[a.name]=u)}return r}function h(t){var r=y.current;v=d(),(m=v&&r&&v.$$route===r.$$route&&e.equals(v.pathParams,r.pathParams)&&!v.reloadOnSearch&&!$)||!r&&!v||n.$broadcast("$routeChangeStart",v,r).defaultPrevented&&t&&t.preventDefault()}function p(){var t=y.current,r=v;m?(t.params=r.params,e.copy(t.params,o),n.$broadcast("$routeUpdate",t)):(r||t)&&($=!1,y.current=r,r&&r.redirectTo&&(e.isString(r.redirectTo)?i.path(g(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),s.when(r).then(function(){if(r){var t,n,i=e.extend({},r.resolve);return e.forEach(i,function(t,n){i[n]=e.isString(t)?a.get(t):a.invoke(t,null,null,n)}),e.isDefined(t=r.template)?e.isFunction(t)&&(t=t(r.params)):e.isDefined(n=r.templateUrl)&&(e.isFunction(n)&&(n=n(r.params)),e.isDefined(n)&&(r.loadedTemplateUrl=l.valueOf(n),t=c(n))),e.isDefined(t)&&(i.$template=t),s.all(i)}}).then(function(i){r==y.current&&(r&&(r.locals=i,e.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,t))},function(e){r==y.current&&n.$broadcast("$routeChangeError",r,t,e)}))}function d(){var n,o;return e.forEach(r,function(r,s){!o&&(n=f(i.path(),r))&&(o=t(r,{params:e.extend({},i.search(),n),pathParams:n}),o.$$route=r)}),o||r[null]&&t(r[null],{params:{},pathParams:{}})}function g(t,n){var r=[];return e.forEach((t||"").split(":"),function(t,e){if(0===e)r.push(t);else{var i=t.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var v,m,$=!1,y={routes:r,reload:function(){$=!0;var t={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,$=!1}};n.$evalAsync(function(){h(t),t.defaultPrevented||p()})},updateParams:function(t){if(!this.current||!this.current.$$route)throw u("norout","Tried updating route when with no current route");t=e.extend({},this.current.params,t),i.path(g(this.current.$$route.originalPath,t)),i.search(t)}};return n.$on("$locationChangeStart",h),n.$on("$locationChangeSuccess",p),y}]}function i(){this.$get=function(){return{}}}function o(t,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,s,a,u){function c(){p&&(r.cancel(p),p=null),f&&(f.$destroy(),f=null),h&&(p=r.leave(h),p.then(function(){p=null}),h=null)}function l(){var s=t.current&&t.current.locals,a=s&&s.$template;if(e.isDefined(a)){var l=i.$new(),p=t.current,v=u(l,function(t){r.enter(t,null,h||o).then(function(){!e.isDefined(d)||d&&!i.$eval(d)||n()}),c()});h=v,f=p.scope=l,f.$emit("$viewContentLoaded"),f.$eval(g)}else c()}var f,h,p,d=s.autoscroll,g=s.onload||"";i.$on("$routeChangeSuccess",l),l()}}}function s(t,e,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,s=o.locals;i.html(s.$template);var a=t(i.contents());if(o.controller){s.$scope=r;var u=e(o.controller,s);o.controllerAs&&(r[o.controllerAs]=u),i.data("$ngControllerController",u),i.children().data("$ngControllerController",u)}a(r)}}}var a=e.module("ngRoute",["ng"]).provider("$route",r),u=e.$$minErr("ngRoute");a.provider("$routeParams",i),a.directive("ngView",o),a.directive("ngView",s),o.$inject=["$route","$anchorScroll","$animate"],s.$inject=["$compile","$controller","$route"]}(window,window.angular)},function(t,e,n){n(30),t.exports="ngSanitize"},function(t,e){/**
 * @license AngularJS v1.4.14
 * (c) 2010-2015 Google, Inc. http://angularjs.org
 * License: MIT
 */
!function(t,e,n){"use strict";function r(){this.$get=["$$sanitizeUri",function(t){return function(e){var n=[];return s(e,c(n,function(e,n){return!/^unsafe/.test(t(e,n))})),n.join("")}}]}function i(t){var n=[];return c(n,e.noop).chars(t),n.join("")}function o(t,n){var r,i={},o=t.split(",");for(r=0;r<o.length;r++)i[n?e.lowercase(o[r]):o[r]]=!0;return i}function s(t,n){function r(t,r,o,s){if(r=e.lowercase(r),k[r])for(;y.last()&&S[y.last()];)i("",y.last());E[r]&&y.last()==r&&i("",r),(s=w[r]||!!s)||y.push(r);var u={};o.replace(p,function(t,e,n,r,i){var o=n||r||i||"";u[e]=a(o)}),n.start&&n.start(r,u,s)}function i(t,r){var i,o=0;if(r=e.lowercase(r))for(o=y.length-1;o>=0&&y[o]!=r;o--);if(o>=0){for(i=y.length-1;i>=o;i--)n.end&&n.end(y[i]);y.length=o}}"string"!=typeof t&&(t=null===t||void 0===t?"":""+t);var o,s,u,c,y=[],b=t;for(y.last=function(){return y[y.length-1]};t;){if(c="",s=!0,y.last()&&T[y.last()]?(t=t.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+y.last()+"[^>]*>","i"),function(t,e){return e=e.replace(v,"$1").replace($,"$1"),n.chars&&n.chars(a(e)),""}),i("",y.last())):(0===t.indexOf("\x3c!--")?(o=t.indexOf("--",4))>=0&&t.lastIndexOf("--\x3e",o)===o&&(n.comment&&n.comment(t.substring(4,o)),t=t.substring(o+3),s=!1):m.test(t)?(u=t.match(m))&&(t=t.replace(u[0],""),s=!1):g.test(t)?(u=t.match(h))&&(t=t.substring(u[0].length),u[0].replace(h,i),s=!1):d.test(t)&&(u=t.match(f),u?(u[4]&&(t=t.substring(u[0].length),u[0].replace(f,r)),s=!1):(c+="<",t=t.substring(1))),s&&(o=t.indexOf("<"),c+=o<0?t:t.substring(0,o),t=o<0?"":t.substring(o),n.chars&&n.chars(a(c)))),t==b)throw l("badparse","The sanitizer was unable to parse the following block of html: {0}",t);b=t}i()}function a(t){return t?(B.innerHTML=t.replace(/</g,"&lt;"),B.textContent):""}function u(t){return t.replace(/&/g,"&amp;").replace(y,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(b,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function c(t,n){var r=!1,i=e.bind(t,t.push);return{start:function(t,o,s){t=e.lowercase(t),!r&&T[t]&&(r=t),r||!0!==O[t]||(i("<"),i(t),e.forEach(o,function(r,o){var s=e.lowercase(o),a="img"===t&&"src"===s||"background"===s;!0!==P[s]||!0===R[s]&&!n(r,a)||(i(" "),i(o),i('="'),i(u(r)),i('"'))}),i(s?"/>":">"))},end:function(t){t=e.lowercase(t),r||!0!==O[t]||(i("</"),i(t),i(">")),t==r&&(r=!1)},chars:function(t){r||i(u(t))}}}var l=e.$$minErr("$sanitize"),f=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,h=/^<\/\s*([\w:-]+)[^>]*>/,p=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,d=/^</,g=/^<\//,v=/<!--(.*?)-->/g,m=/<!DOCTYPE([^>]*?)>/i,$=/<!\[CDATA\[(.*?)]]>/g,y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/([^\#-~| |!])/g,w=o("area,br,col,hr,img,wbr"),x=o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),C=o("rp,rt"),E=e.extend({},C,x),k=e.extend({},x,o("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),S=e.extend({},C,o("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),A=o("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),T=o("script,style"),O=e.extend({},w,k,S,E,A),R=o("background,cite,href,longdesc,src,usemap,xlink:href"),M=o("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),_=o("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),P=e.extend({},R,_,M),B=document.createElement("pre");e.module("ngSanitize",[]).provider("$sanitize",r),e.module("ngSanitize").filter("linky",["$sanitize",function(t){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i;return function(o,s){function a(t){t&&h.push(i(t))}if(!o)return o;for(var u,c,l,f=o,h=[];u=f.match(n);)c=u[0],u[2]||u[4]||(c=(u[3]?"http://":"mailto:")+c),l=u.index,a(f.substr(0,l)),function(t,n){h.push("<a "),e.isDefined(s)&&h.push('target="',s,'" '),h.push('href="',t.replace(/"/g,"&quot;"),'">'),a(n),h.push("</a>")}(c,u[0].replace(r,"")),f=f.substring(l+u[0].length);return a(f),t(h.join(""))}}])}(window,window.angular)},function(t,e,n){n(32),t.exports="ngTouch"},function(t,e){/**
 * @license AngularJS v1.4.14
 * (c) 2010-2015 Google, Inc. http://angularjs.org
 * License: MIT
 */
!function(t,e,n){"use strict";function r(t){return e.lowercase(t.nodeName||t[0]&&t[0].nodeName)}function i(t,n,r){o.directive(t,["$parse","$swipe",function(i,o){return function(s,a,u){function c(t){if(!l)return!1;var e=Math.abs(t.y-l.y),r=(t.x-l.x)*n;return f&&e<75&&r>0&&r>30&&e/r<.3}var l,f,h=i(u[t]),p=["touch"];e.isDefined(u.ngSwipeDisableMouse)||p.push("mouse"),o.bind(a,{start:function(t,e){l=t,f=!0},cancel:function(t){f=!1},end:function(t,e){c(t)&&s.$apply(function(){a.triggerHandler(r),h(s,{$event:e})})}},p)}}])}var o=e.module("ngTouch",[]);o.factory("$swipe",[function(){function t(t){var e=t.originalEvent||t,n=e.touches&&e.touches.length?e.touches:[e],r=e.changedTouches&&e.changedTouches[0]||n[0];return{x:r.clientX,y:r.clientY}}function n(t,n){var i=[];return e.forEach(t,function(t){var e=r[t][n];e&&i.push(e)}),i.join(" ")}var r={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}};return{bind:function(e,r,i){var o,s,a,u,c=!1;i=i||["mouse","touch"],e.on(n(i,"start"),function(e){a=t(e),c=!0,o=0,s=0,u=a,r.start&&r.start(a,e)});var l=n(i,"cancel");l&&e.on(l,function(t){c=!1,r.cancel&&r.cancel(t)}),e.on(n(i,"move"),function(e){if(c&&a){var n=t(e);if(o+=Math.abs(n.x-u.x),s+=Math.abs(n.y-u.y),u=n,!(o<10&&s<10))return s>o?(c=!1,void(r.cancel&&r.cancel(e))):(e.preventDefault(),void(r.move&&r.move(n,e)))}}),e.on(n(i,"end"),function(e){c&&(c=!1,r.end&&r.end(t(e),e))})}}}]),o.config(["$provide",function(t){t.decorator("ngClickDirective",["$delegate",function(t){return t.shift(),t}])}]),o.directive("ngClick",["$parse","$timeout","$rootElement",function(t,n,i){function o(t,e,n,r){return Math.abs(t-n)<d&&Math.abs(e-r)<d}function s(t,e,n){for(var r=0;r<t.length;r+=2)if(o(t[r],t[r+1],e,n))return t.splice(r,r+2),!0;return!1}function a(t){if(!(Date.now()-l>p)){var e=t.touches&&t.touches.length?t.touches:[t],n=e[0].clientX,i=e[0].clientY;n<1&&i<1||h&&h[0]===n&&h[1]===i||(h&&(h=null),"label"===r(t.target)&&(h=[n,i]),s(f,n,i)||(t.stopPropagation(),t.preventDefault(),t.target&&t.target.blur&&t.target.blur()))}}function u(t){var e=t.touches&&t.touches.length?t.touches:[t],r=e[0].clientX,i=e[0].clientY;f.push(r,i),n(function(){for(var t=0;t<f.length;t+=2)if(f[t]==r&&f[t+1]==i)return void f.splice(t,t+2)},p,!1)}function c(t,e){f||(i[0].addEventListener("click",a,!0),i[0].addEventListener("touchstart",u,!0),f=[]),l=Date.now(),s(f,t,e)}var l,f,h,p=2500,d=25,g="ng-click-active";return function(n,r,i){function o(){h=!1,r.removeClass(g)}var s,a,u,l,f=t(i.ngClick),h=!1;r.on("touchstart",function(t){h=!0,s=t.target?t.target:t.srcElement,3==s.nodeType&&(s=s.parentNode),r.addClass(g),a=Date.now();var e=t.originalEvent||t,n=e.touches&&e.touches.length?e.touches:[e],i=n[0];u=i.clientX,l=i.clientY}),r.on("touchcancel",function(t){o()}),r.on("touchend",function(t){var n=Date.now()-a,f=t.originalEvent||t,p=f.changedTouches&&f.changedTouches.length?f.changedTouches:f.touches&&f.touches.length?f.touches:[f],d=p[0],g=d.clientX,v=d.clientY,m=Math.sqrt(Math.pow(g-u,2)+Math.pow(v-l,2));h&&n<750&&m<12&&(c(g,v),s&&s.blur(),e.isDefined(i.disabled)&&!1!==i.disabled||r.triggerHandler("click",[t])),o()}),r.onclick=function(t){},r.on("click",function(t,e){n.$apply(function(){f(n,{$event:e||t})})}),r.on("mousedown",function(t){r.addClass(g)}),r.on("mousemove mouseup",function(t){r.removeClass(g)})}}]),i("ngSwipeLeft",-1,"swipeleft"),i("ngSwipeRight",1,"swiperight")}(window,window.angular)},function(t,e,n){function r(t,e,n){t._disconnected=!1,t.ui={visible:!1,heading:"Browsersync",message:"Disconnected"},t.socketEvents={connection:function(){t._disconnected&&n.location.reload(!0),t.ui.visible=!1,t.$digest()},disconnect:function(){t._disconnected=!0,t.ui.visible=!0,t.$digest()}},e.$on("ui:connection",t.socketEvents.connection),e.$on("ui:disconnect",t.socketEvents.disconnect)}n(2).module("bsDisconnect",[]).directive("disconnectElem",function(){return{restrict:"E",scope:{},template:'<section bs-overlay ng-class="{\'active\': ui.visible}">\n    <p><icon icon="block"></icon></p>\n    <h1>{{ui.heading}} {{ui.message}}</h1>\n    <p>Possible reasons are:</p>\n    <ul bs-list>\n        <li>1. Your process was exited by another tool</li>\n    </ul>\n    <p>You should check your terminal window to see what happened. <br/>(Or simply try reloading this page.)</p>\n</section>',controller:["$scope","$rootScope","$window",r]}})},function(t,e,n){function r(t,e){t.ui={status:"info",heading:"Browsersync:",message:"Welcome to Browsersync"},t.show=function(e,n){n=n||{},t._timer&&clearTimeout(t._timer),t._timer=window.setTimeout(t.reset,n.timeout||2e3),t.ui.visible=!0,t.ui.status=n.status||"info",t.ui.heading=n.heading||"Browsersync:",t.ui.message=n.message||"Browsersync:"},t.reset=function(){t.ui.visible=!1,t.$digest()},e.$on("notify:flash",t.show)}n(2).module("bsNotify",[]).directive("notifyElem",function(){return{restrict:"E",scope:{},template:'<div bs-notify ng-class="{\'active\': ui.visible}">\n    <p class="notification__text">{{ui.heading}} <span class="color--lime">{{ui.message}}</span></p>\n</div>',controller:["$scope","$rootScope",r]}})},function(t,e,n){function r(t){var e=[],n=[];return t.on("ui:history:update",function(t){n.forEach(function(e){e(t)})}),{visited:e,updateHistory:function(t){e=t},get:function(){return t.getData("visited")},remove:function(e){t.emit("ui",{namespace:"history",event:"remove",data:e})},clear:function(){t.emit("ui",{namespace:"history",event:"clear"})},on:function(t,e){n.push(e)},off:function(t){var e=n.indexOf(t);e>-1&&(n=n.splice(e,1))}}}n(2).module("bsHistory",["bsSocket"]).service("History",["Socket",r])},function(t,e,n){function r(t){return{reloadAll:function(){t.clientEvent("browser:reload")},sendAllTo:function(e){t.emit("ui",{namespace:"history",event:"sendAllTo",data:{path:e}})},scrollAllTo:function(){t.clientEvent("scroll",{position:{raw:0,proportional:0},override:!0})},highlight:function(e){t.emit("ui:highlight",e)}}}n(2).module("bsClients",["bsSocket"]).service("Clients",["Socket",r])},function(t,e,n){function r(t,e){var n,r=t.defer();u.on("connection",function(t){if(n=t.session,e.$emit("ui:connection",t),r.resolve(t,this),""===window.name)window.name=JSON.stringify({id:o.id});else{JSON.parse(window.name).id,o.id}}),u.on("disconnect",function(){e.$emit("ui:disconnect")});var i={on:function(t,e){u.on(t,e)},off:function(t,e){u.off(t,e)},removeEvent:function(t,e){u.removeListener(t,e)},emit:function(t,e){u.emit(t,e||{})},clientEvent:function(t,e){u.emit("ui:client:proxy",{event:t,data:e})},options:function(){return r.promise},getData:function(e){var n=t.defer();return u.on("ui:receive:"+e,function(t){n.resolve(t)}),u.emit("ui:get:"+e),n.promise},uiEvent:function(t){u.emit("ui",t)},newSession:function(){}};return Object.defineProperty(i,"sessionId",{get:function(){return n}}),i}var i=n(2),o=n(38),s=window.___browserSync___.socketConfig,a=window.___browserSync___.socketUrl,u=o(a,s);i.module("bsSocket",[]).service("Socket",["$q","$rootScope",r])},function(t,e,n){function r(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r=i(t),o=r.source,c=r.id,l=r.path,f=u[c]&&l in u[c].nsps,h=e.forceNew||e["force new connection"]||!1===e.multiplex||f;return h?(a("ignoring socket cache for %s",o),n=s(o,e)):(u[c]||(a("new io instance for %s",o),u[c]=s(o,e)),n=u[c]),r.query&&!e.query&&(e.query=r.query),n.socket(r.path,e)}var i=n(39),o=n(8),s=n(14),a=n(1)("socket.io-client");t.exports=e=r;var u=e.managers={};e.protocol=o.protocol,e.connect=r,e.Manager=n(14),e.Socket=n(20)},function(t,e,n){(function(e){function r(t,n){var r=t;n=n||e.location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(o("protocol-less url %s",t),t=void 0!==n?n.protocol+"//"+t:"https://"+t),o("parse %s",t),r=i(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var s=-1!==r.host.indexOf(":"),a=s?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}var i=n(12),o=n(1)("socket.io-client:url");t.exports=r}).call(e,n(0))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){g&&p&&(g=!1,p.length?d=p.concat(d):v=-1,d.length&&a())}function a(){if(!g){var t=i(s);g=!0;for(var e=d.length;e;){for(p=d,d=[];++v<e;)p&&p[v].run();v=-1,e=d.length}p=null,g=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var l,f,h=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var p,d=[],g=!1,v=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new u(t,e)),1!==d.length||g||i(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e,n){function r(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}function i(t){function n(){if(n.enabled){var t=n,r=+new Date,o=r-(i||r);t.diff=o,t.prev=i,t.curr=r,i=r;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=e.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var u=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;u++;var i=e.formatters[r];if("function"==typeof i){var o=s[u];n=i.call(t,o),s.splice(u,1),u--}return n}),e.formatArgs.call(t,s);(n.log||e.log||console.log.bind(console)).apply(t,s)}}var i;return n.namespace=t,n.enabled=e.enabled(t),n.useColors=e.useColors(),n.color=r(t),n.destroy=o,"function"==typeof e.init&&e.init(n),e.instances.push(n),n}function o(){var t=e.instances.indexOf(this);return-1!==t&&(e.instances.splice(t,1),!0)}function s(t){e.save(t),e.names=[],e.skips=[];var n,r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&(t=r[n].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")));for(n=0;n<e.instances.length;n++){var o=e.instances[n];o.enabled=e.enabled(o.namespace)}}function a(){e.enable("")}function u(t){if("*"===t[t.length-1])return!0;var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1}function c(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=i.debug=i.default=i,e.coerce=c,e.disable=a,e.enable=s,e.enabled=u,e.humanize=n(42),e.instances=[],e.names=[],e.skips=[],e.formatters={}},function(t,e){function n(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=c?Math.round(t/c)+"d":t>=u?Math.round(t/u)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function i(t){return o(t,c,"day")||o(t,u,"hour")||o(t,a,"minute")||o(t,s,"second")||t+" ms"}function o(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,a=60*s,u=60*a,c=24*u,l=365.25*c;t.exports=function(t,e){e=e||{};var o=typeof t;if("string"===o&&t.length>0)return n(t);if("number"===o&&!1===isNaN(t))return e.long?i(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){(function(t){function r(t,e){if(!t)return t;if(s(t)){var n={_placeholder:!0,num:e.length};return e.push(t),n}if(o(t)){for(var i=new Array(t.length),a=0;a<t.length;a++)i[a]=r(t[a],e);return i}if("object"==typeof t&&!(t instanceof Date)){var i={};for(var u in t)i[u]=r(t[u],e);return i}return t}function i(t,e){if(!t)return t;if(t&&t._placeholder)return e[t.num];if(o(t))for(var n=0;n<t.length;n++)t[n]=i(t[n],e);else if("object"==typeof t)for(var r in t)t[r]=i(t[r],e);return t}var o=n(9),s=n(13),a=Object.prototype.toString,u="function"==typeof t.Blob||"[object BlobConstructor]"===a.call(t.Blob),c="function"==typeof t.File||"[object FileConstructor]"===a.call(t.File);e.deconstructPacket=function(t){var e=[],n=t.data,i=t;return i.data=r(n,e),i.attachments=e.length,{packet:i,buffers:e}},e.reconstructPacket=function(t,e){return t.data=i(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){function n(t,a,l){if(!t)return t;if(u&&t instanceof Blob||c&&t instanceof File){r++;var f=new FileReader;f.onload=function(){l?l[a]=this.result:i=this.result,--r||e(i)},f.readAsArrayBuffer(t)}else if(o(t))for(var h=0;h<t.length;h++)n(t[h],h,t);else if("object"==typeof t&&!s(t))for(var p in t)n(t[p],p,t)}var r=0,i=t;n(i),r||e(i)}}).call(e,n(0))},function(t,e,n){t.exports=n(45),t.exports.parser=n(4)},function(t,e,n){(function(e){function r(t,n){if(!(this instanceof r))return new r(t,n);n=n||{},t&&"object"==typeof t&&(n=t,t=null),t?(t=l(t),n.hostname=t.host,n.secure="https"===t.protocol||"wss"===t.protocol,n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=l(n.host).host),this.secure=null!=n.secure?n.secure:e.location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(e.location?location.hostname:"localhost"),this.port=n.port||(e.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=f.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized||n.rejectUnauthorized,this.forceNode=!!n.forceNode;var i="object"==typeof e&&e;i.global===i&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}function i(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var o=n(15),s=n(3),a=n(1)("engine.io-client:socket"),u=n(19),c=n(4),l=n(12),f=n(6);t.exports=r,r.priorWebsocketSuccess=!1,s(r.prototype),r.protocol=c.protocol,r.Socket=r,r.Transport=n(11),r.transports=n(15),r.parser=n(4),r.prototype.createTransport=function(t){a('creating transport "%s"',t);var e=i(this.query);e.EIO=c.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new o[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0})},r.prototype.open=function(){var t;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},r.prototype.setTransport=function(t){a("setting transport %s",t.name);var e=this;this.transport&&(a("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},r.prototype.probe=function(t){function e(){if(h.onlyBinaryUpgrades){var e=!this.supportsBinary&&h.transport.supportsBinary;f=f||e}f||(a('probe transport "%s" opened',t),l.send([{type:"ping",data:"probe"}]),l.once("packet",function(e){if(!f)if("pong"===e.type&&"probe"===e.data){if(a('probe transport "%s" pong',t),h.upgrading=!0,h.emit("upgrading",l),!l)return;r.priorWebsocketSuccess="websocket"===l.name,a('pausing current transport "%s"',h.transport.name),h.transport.pause(function(){f||"closed"!==h.readyState&&(a("changing transport and sending upgrade packet"),c(),h.setTransport(l),l.send([{type:"upgrade"}]),h.emit("upgrade",l),l=null,h.upgrading=!1,h.flush())})}else{a('probe transport "%s" failed',t);var n=new Error("probe error");n.transport=l.name,h.emit("upgradeError",n)}}))}function n(){f||(f=!0,c(),l.close(),l=null)}function i(e){var r=new Error("probe error: "+e);r.transport=l.name,n(),a('probe transport "%s" failed because of error: %s',t,e),h.emit("upgradeError",r)}function o(){i("transport closed")}function s(){i("socket closed")}function u(t){l&&t.name!==l.name&&(a('"%s" works - aborting "%s"',t.name,l.name),n())}function c(){l.removeListener("open",e),l.removeListener("error",i),l.removeListener("close",o),h.removeListener("close",s),h.removeListener("upgrading",u)}a('probing transport "%s"',t);var l=this.createTransport(t,{probe:1}),f=!1,h=this;r.priorWebsocketSuccess=!1,l.once("open",e),l.once("error",i),l.once("close",o),this.once("close",s),this.once("upgrading",u),l.open()},r.prototype.onOpen=function(){if(a("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){a("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},r.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(a('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else a('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!==e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},r.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){a("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},r.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(a("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},r.prototype.sendPacket=function(t,e,n,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){n=n||{},n.compress=!1!==n.compress;var i={type:t,data:e,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},r.prototype.close=function(){function t(){r.onClose("forced close"),a("socket closing - telling transport to close"),r.transport.close()}function e(){r.removeListener("upgrade",e),r.removeListener("upgradeError",e),t()}function n(){r.once("upgrade",e),r.once("upgradeError",e)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}return this},r.prototype.onError=function(t){a("socket error %j",t),r.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},r.prototype.onClose=function(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){a('socket close with reason: "%s"',t);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),n.writeBuffer=[],n.prevBufferLen=0}},r.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;n<r;n++)~u(this.transports,t[n])&&e.push(t[n]);return e}}).call(e,n(0))},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e,n){(function(e){function r(){}function i(t){if(u.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,e.location){var n="https:"===location.protocol,r=location.port;r||(r=n?443:80),this.xd=t.hostname!==e.location.hostname||r!==t.port,this.xs=t.secure!==n}}function o(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function s(){for(var t in o.requests)o.requests.hasOwnProperty(t)&&o.requests[t].abort()}var a=n(10),u=n(16),c=n(3),l=n(7),f=n(1)("engine.io-client:polling-xhr");t.exports=i,t.exports.Request=o,l(i,u),i.prototype.supportsBinary=!0,i.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new o(t)},i.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),i=this;r.on("success",e),r.on("error",function(t){i.onError("xhr post error",t)}),this.sendXhr=r},i.prototype.doPoll=function(){f("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},c(o.prototype),o.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new a(t),r=this;try{f("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(var i in this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.extraHeaders[i])}}catch(t){}if("POST"===this.method)try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{n.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in n&&(n.withCredentials=!0),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){r.onLoad()},n.onerror=function(){r.onError(n.responseText)}):n.onreadystatechange=function(){if(2===n.readyState)try{var t=n.getResponseHeader("Content-Type");r.supportsBinary&&"application/octet-stream"===t&&(n.responseType="arraybuffer")}catch(t){}4===n.readyState&&(200===n.status||1223===n.status?r.onLoad():setTimeout(function(){r.onError(n.status)},0))},f("xhr data %s",this.data),n.send(this.data)}catch(t){return void setTimeout(function(){r.onError(t)},0)}e.document&&(this.index=o.requestsCount++,o.requests[this.index]=this)},o.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},o.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},o.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},o.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,t)try{this.xhr.abort()}catch(t){}e.document&&delete o.requests[this.index],this.xhr=null}},o.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(t){}t="application/octet-stream"===e?this.xhr.response||this.xhr.responseText:this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},o.prototype.hasXDR=function(){return void 0!==e.XDomainRequest&&!this.xs&&this.enablesXDR},o.prototype.abort=function(){this.cleanup()},o.requestsCount=0,o.requests={},e.document&&(e.attachEvent?e.attachEvent("onunload",s):e.addEventListener&&e.addEventListener("beforeunload",s,!1))}).call(e,n(0))},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},function(t,e,n){"use strict";(function(t){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,e,n)}function s(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,n,r):"string"==typeof e?l(t,e,n):p(t,e)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,n,r){return a(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function c(t,e){if(a(e),t=i(t,e<0?0:0|d(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(e,n);t=i(t,r);var s=t.write(e,n);return s!==r&&(t=t.slice(0,s)),t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function h(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=f(t,e),t}function p(t,e){if(o.isBuffer(e)){var n=0|d(e.length);return t=i(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||J(e.length)?i(t,0):f(t,e);if("Buffer"===e.type&&Z(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function v(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(r)return H(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return _(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return M(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function $(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,i){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}var c;if(i){var l=-1;for(c=n;c<a;c++)if(o(t,c)===o(e,-1===l?0:c-l)){if(-1===l&&(l=c),c-l+1===u)return l*s}else-1!==l&&(c-=c-l),l=-1}else for(n+u>a&&(n=a-u),c=n;c>=0;c--){for(var f=!0,h=0;h<u;h++)if(o(t,c+h)!==o(e,h)){f=!1;break}if(f)return c}return-1}function w(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function x(t,e,n,r){return X(H(e,t.length-n),t,n,r)}function C(t,e,n,r){return X(z(e),t,n,r)}function E(t,e,n,r){return C(t,e,n,r)}function k(t,e,n,r){return X(W(e),t,n,r)}function S(t,e,n,r){return X(Y(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?G.fromByteArray(t):G.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o=t[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=n){var u,c,l,f;switch(a){case 1:o<128&&(s=o);break;case 2:u=t[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(s=f);break;case 3:u=t[i+1],c=t[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(s=f);break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(s=f)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return O(r)}function O(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Q));return n}function R(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function M(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function _(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=L(t[o]);return i}function P(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function B(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,n,r,i,s){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function j(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function I(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(t,e,n,r,i){return i||I(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,i){return i||I(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,n,r,52,8),n+8}function V(t){if(t=q(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function q(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function L(t){return t<16?"0"+t.toString(16):t.toString(16)}function H(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Y(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function W(t){return G.toByteArray(V(t))}function X(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function J(t){return t!==t}/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
var G=n(50),K=n(51),Z=n(52);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return s(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,s=Math.min(n,r);i<s;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Z(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!o.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)$(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)$(this,e,e+3),$(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)$(this,e,e+7),$(this,e+1,e+6),$(this,e+2,e+5),$(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):m.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var s=i-r,a=n-e,u=Math.min(s,a),c=this.slice(r,i),l=t.slice(e,n),f=0;f<u;++f)if(c[f]!==l[f]){s=c[f],a=l[f];break}return s<a?-1:a<s?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},o.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var s=0;s<i;++s)r[s]=this[s+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||B(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||B(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||B(t,4,this.length),K.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),K.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),K.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),K.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){N(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){N(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);N(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);N(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,s=r-n;if(this===t&&n<e&&e<r)for(i=s-1;i>=0;--i)t[i+e]=this[i+n];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s<n;++s)this[s]=t;else{var a=o.isBuffer(t)?t:H(new o(t,r).toString()),u=a.length;for(s=0;s<n-e;++s)this[s+e]=a[s%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(0))},function(t,e,n){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function i(t){var e=r(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function o(t,e,n){return 3*(e+n)/4-n}function s(t){for(var e,n=r(t),i=n[0],s=n[1],a=new h(o(t,i,s)),u=0,c=s>0?i-4:i,l=0;l<c;l+=4)e=f[t.charCodeAt(l)]<<18|f[t.charCodeAt(l+1)]<<12|f[t.charCodeAt(l+2)]<<6|f[t.charCodeAt(l+3)],a[u++]=e>>16&255,a[u++]=e>>8&255,a[u++]=255&e;return 2===s&&(e=f[t.charCodeAt(l)]<<2|f[t.charCodeAt(l+1)]>>4,a[u++]=255&e),1===s&&(e=f[t.charCodeAt(l)]<<10|f[t.charCodeAt(l+1)]<<4|f[t.charCodeAt(l+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e),a}function a(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function u(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(a(r));return i.join("")}function c(t){for(var e,n=t.length,r=n%3,i=[],o=0,s=n-r;o<s;o+=16383)i.push(u(t,o,o+16383>s?s:o+16383));return 1===r?(e=t[n-1],i.push(l[e>>2]+l[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push(l[e>>10]+l[e>>4&63]+l[e<<2&63]+"=")),i.join("")}e.byteLength=i,e.toByteArray=s,e.fromByteArray=c;for(var l=[],f=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,g=p.length;d<g;++d)l[d]=p[d],f[p.charCodeAt(d)]=d;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=c}return(p?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+f>=1?h/u:h*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[n+p]=255&s,p+=d,s/=256,c-=8);t[n+p-d]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(n-e),s=e,a=0;s<n;s++,a++)o[a]=i[s];return o.buffer}},function(t,e){function n(t,e,n){function i(t,r){if(i.count<=0)throw new Error("after called too many times");--i.count,t?(o=!0,e(t),e=n):0!==i.count||o||e(null,r)}var o=!1;return n=n||r,i.count=t,0===t?e():i}function r(){}t.exports=n},function(t,e,n){(function(t,r){var i;!function(o){function s(t){for(var e,n,r=[],i=0,o=t.length;i<o;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function a(t){for(var e,n=t.length,r=-1,i="";++r<n;)e=t[r],e>65535&&(e-=65536,i+=b(e>>>10&1023|55296),e=56320|1023&e),i+=b(e);return i}function u(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function c(t,e){return b(t>>e&63|128)}function l(t,e){if(0==(4294967168&t))return b(t);var n="";return 0==(4294965248&t)?n=b(t>>6&31|192):0==(4294901760&t)?(u(t,e)||(t=65533),n=b(t>>12&15|224),n+=c(t,6)):0==(4292870144&t)&&(n=b(t>>18&7|240),n+=c(t,12),n+=c(t,6)),n+=b(63&t|128)}function f(t,e){e=e||{};for(var n,r=!1!==e.strict,i=s(t),o=i.length,a=-1,u="";++a<o;)n=i[a],u+=l(n,r);return u}function h(){if(y>=$)throw Error("Invalid byte index");var t=255&m[y];if(y++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function p(t){var e,n,r,i,o;if(y>$)throw Error("Invalid byte index");if(y==$)return!1;if(e=255&m[y],y++,0==(128&e))return e;if(192==(224&e)){if(n=h(),(o=(31&e)<<6|n)>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if(n=h(),r=h(),(o=(15&e)<<12|n<<6|r)>=2048)return u(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(n=h(),r=h(),i=h(),(o=(7&e)<<18|n<<12|r<<6|i)>=65536&&o<=1114111))return o;throw Error("Invalid UTF-8 detected")}function d(t,e){e=e||{};var n=!1!==e.strict;m=s(t),$=m.length,y=0;for(var r,i=[];!1!==(r=p(n));)i.push(r);return a(i)}var g="object"==typeof e&&e,v=("object"==typeof t&&t&&t.exports,"object"==typeof r&&r);var m,$,y,b=String.fromCharCode,w={version:"2.1.2",encode:f,decode:d};void 0!==(i=function(){return w}.call(e,n,e,t))&&(t.exports=i)}()}).call(e,n(56)(t),n(0))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<t.length;r++)n[t.charCodeAt(r)]=r;e.encode=function(e){var n,r=new Uint8Array(e),i=r.length,o="";for(n=0;n<i;n+=3)o+=t[r[n]>>2],o+=t[(3&r[n])<<4|r[n+1]>>4],o+=t[(15&r[n+1])<<2|r[n+2]>>6],o+=t[63&r[n+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,r,i,o,s,a=.75*t.length,u=t.length,c=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var l=new ArrayBuffer(a),f=new Uint8Array(l);for(e=0;e<u;e+=4)r=n[t.charCodeAt(e)],i=n[t.charCodeAt(e+1)],o=n[t.charCodeAt(e+2)],s=n[t.charCodeAt(e+3)],f[c++]=r<<2|i>>4,f[c++]=(15&i)<<4|o>>2,f[c++]=(3&o)<<6|63&s;return l}}()},function(t,e,n){(function(e){function n(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.buffer instanceof ArrayBuffer){var r=n.buffer;if(n.byteLength!==r.byteLength){var i=new Uint8Array(n.byteLength);i.set(new Uint8Array(r,n.byteOffset,n.byteLength)),r=i.buffer}t[e]=r}}}function r(t,e){e=e||{};var r=new o;n(t);for(var i=0;i<t.length;i++)r.append(t[i]);return e.type?r.getBlob(e.type):r.getBlob()}function i(t,e){return n(t),new Blob(t,e||{})}var o=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder,s=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),a=s&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),u=o&&o.prototype.append&&o.prototype.getBlob;t.exports=function(){return s?a?e.Blob:i:u?r:void 0}()}).call(e,n(0))},function(t,e,n){(function(e){function r(){}function i(t){o.call(this,t),this.query=this.query||{},a||(e.___eio||(e.___eio=[]),a=e.___eio),this.index=a.length;var n=this;a.push(function(t){n.onData(t)}),this.query.j=this.index,e.document&&e.addEventListener&&e.addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var o=n(16),s=n(7);t.exports=i;var a,u=/\n/g,c=/\\n/g;s(i,o),i.prototype.supportsBinary=!1,i.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o.prototype.doClose.call(this)},i.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},i.prototype.doWrite=function(t,e){function n(){r(),e()}function r(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(t){i.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+i.iframeId+'">';o=document.createElement(t)}catch(t){o=document.createElement("iframe"),o.name=i.iframeId,o.src="javascript:0"}o.id=i.iframeId,i.form.appendChild(o),i.iframe=o}var i=this;if(!this.form){var o,s=document.createElement("form"),a=document.createElement("textarea"),l=this.iframeId="eio_iframe_"+this.index;s.className="socketio",s.style.position="absolute",s.style.top="-1000px",s.style.left="-1000px",s.target=l,s.method="POST",s.setAttribute("accept-charset","utf-8"),a.name="d",s.appendChild(a),document.body.appendChild(s),this.form=s,this.area=a}this.form.action=this.uri(),r(),t=t.replace(c,"\\\n"),this.area.value=t.replace(u,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===i.iframe.readyState&&n()}:this.iframe.onload=n}}).call(e,n(0))},function(t,e,n){(function(e){function r(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=f&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(h=i),o.call(this,t)}var i,o=n(11),s=n(4),a=n(6),u=n(7),c=n(18),l=n(1)("engine.io-client:websocket"),f=e.WebSocket||e.MozWebSocket;if("undefined"==typeof window)try{i=n(61)}catch(t){}var h=f;h||"undefined"!=typeof window||(h=i),t.exports=r,u(r,o),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?e?new h(t,e):new h(t):new h(t,e,n)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},r.prototype.write=function(t){function n(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}var r=this;this.writable=!1;for(var i=t.length,o=0,a=i;o<a;o++)!function(t){s.encodePacket(t,r.supportsBinary,function(o){if(!r.usingBrowserWebSocket){var s={};if(t.options&&(s.compress=t.options.compress),r.perMessageDeflate){("string"==typeof o?e.Buffer.byteLength(o):o.length)<r.perMessageDeflate.threshold&&(s.compress=!1)}}try{r.usingBrowserWebSocket?r.ws.send(o):r.ws.send(o,s)}catch(t){l("websocket closed before onclose event")}--i||n()})}(t[o])},r.prototype.onClose=function(){o.prototype.onClose.call(this)},r.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";return this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=c()),this.supportsBinary||(t.b64=1),t=a.encode(t),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t},r.prototype.check=function(){return!(!h||"__initialize"in h&&this.name===r.prototype.name)}}).call(e,n(0))},function(t,e){},function(t,e){function n(t,e){var n=[];e=e||0;for(var r=e||0;r<t.length;r++)n[r-e]=t[r];return n}t.exports=n},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},function(t,e,n){function r(t,e){return{enable:function(e){return angular.forEach(t,function(t){t.active=!1}),e.active=!0,t},transform:function(t,e){if("function"==typeof e)return t=e(t);throw new TypeError("Noooo")},current:function(){if("/"===e.path())return t.overview;var n;return angular.forEach(t,function(t){t.path===e.path()&&(n=t)}),n}}}n(5).service("Pages",["pagesConfig","$location",r])},function(t,e,n){function r(t){return{all:function(){return t.getData("options")}}}n(5).factory("Options",["Socket",r])},function(t,e,n){function r(t){var e=s.get("bs",{});Object.keys(e).length||s.set("bs",{}),this.ns=t,this.get=function(e){var n=s.get("bs",{});return Object.keys(n).length||s.set("bs",{}),a.get(n,[t].concat(e).join("."))},this.set=function(e,n){var r=s.get("bs",{});Object.keys(r).length||s.set("bs",{}),r[t]||(r[t]={}),r[t][e]=n,s.set("bs",r)},this.remove=function(e){var n=s.get("bs",{});Object.keys(n).length||s.set("bs",{}),n[t]||(n[t]={}),n[t][e]&&delete n[t][e],s.set("bs",n)}}function i(){return{create:function(t){return new r(t)}}}var o=n(2),s=n(67),a=n(68);o.module("bsStore",[]).service("Store",["$q","$rootScope",i])},function(t,e,n){"use strict";(function(n){var r,i,o;!function(n,s){i=[],r=s,void 0!==(o="function"==typeof r?r.apply(e,i):r)&&(t.exports=o)}(0,function(){var t,e={},r="undefined"!=typeof window?window:n,i=r.document,o="localStorage";if(e.disabled=!1,e.version="1.3.20",e.set=function(t,e){},e.get=function(t,e){},e.has=function(t){return void 0!==e.get(t)},e.remove=function(t){},e.clear=function(){},e.transact=function(t,n,r){null==r&&(r=n,n=null),null==n&&(n={});var i=e.get(t,n);r(i),e.set(t,i)},e.getAll=function(){},e.forEach=function(){},e.serialize=function(t){return JSON.stringify(t)},e.deserialize=function(t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t||void 0}},function(){try{return o in r&&r[o]}catch(t){return!1}}())t=r[o],e.set=function(n,r){return void 0===r?e.remove(n):(t.setItem(n,e.serialize(r)),r)},e.get=function(n,r){var i=e.deserialize(t.getItem(n));return void 0===i?r:i},e.remove=function(e){t.removeItem(e)},e.clear=function(){t.clear()},e.getAll=function(){var t={};return e.forEach(function(e,n){t[e]=n}),t},e.forEach=function(n){for(var r=0;r<t.length;r++){var i=t.key(r);n(i,e.get(i))}};else if(i&&i.documentElement.addBehavior){var s,a;try{a=new ActiveXObject("htmlfile"),a.open(),a.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),a.close(),s=a.w.frames[0].document,t=s.createElement("div")}catch(e){t=i.createElement("div"),s=i.body}var u=function(n){return function(){var r=Array.prototype.slice.call(arguments,0);r.unshift(t),s.appendChild(t),t.addBehavior("#default#userData"),t.load(o);var i=n.apply(e,r);return s.removeChild(t),i}},c=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),l=function(t){return t.replace(/^d/,"___$&").replace(c,"___")};e.set=u(function(t,n,r){return n=l(n),void 0===r?e.remove(n):(t.setAttribute(n,e.serialize(r)),t.save(o),r)}),e.get=u(function(t,n,r){n=l(n);var i=e.deserialize(t.getAttribute(n));return void 0===i?r:i}),e.remove=u(function(t,e){e=l(e),t.removeAttribute(e),t.save(o)}),e.clear=u(function(t){var e=t.XMLDocument.documentElement.attributes;t.load(o);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(o)}),e.getAll=function(t){var n={};return e.forEach(function(t,e){n[t]=e}),n},e.forEach=u(function(t,n){for(var r,i=t.XMLDocument.documentElement.attributes,o=0;r=i[o];++o)n(r.name,e.deserialize(t.getAttribute(r.name)))})}try{var f="__storejs__";e.set(f,f),e.get(f)!=f&&(e.disabled=!0),e.remove(f)}catch(t){e.disabled=!0}return e.enabled=!e.disabled,e})}).call(e,n(0))},function(t,e,n){var r,i,o;!function(n,s){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=s():(i=[],r=s,void 0!==(o="function"==typeof r?r.apply(e,i):r)&&(t.exports=o))}(0,function(){"use strict";function t(t){if(!t)return!0;if(o(t)&&0===t.length)return!0;if(!r(t)){for(var e in t)if(f.call(t,e))return!1;return!0}return!1}function e(t){return l.call(t)}function n(t){return"number"==typeof t||"[object Number]"===e(t)}function r(t){return"string"==typeof t||"[object String]"===e(t)}function i(t){return"object"==typeof t&&"[object Object]"===e(t)}function o(t){return"object"==typeof t&&"number"==typeof t.length&&"[object Array]"===e(t)}function s(t){return"boolean"==typeof t||"[object Boolean]"===e(t)}function a(t){var e=parseInt(t);return e.toString()===t?e:t}function u(e,i,o,s){if(n(i)&&(i=[i]),t(i))return e;if(r(i))return u(e,i.split(".").map(a),o,s);var c=i[0];if(1===i.length){var l=e[c];return void 0!==l&&s||(e[c]=o),l}return void 0===e[c]&&(n(i[1])?e[c]=[]:e[c]={}),u(e[c],i.slice(1),o,s)}function c(e,i){if(n(i)&&(i=[i]),!t(e)){if(t(i))return e;if(r(i))return c(e,i.split("."));var s=a(i[0]),u=e[s];if(1===i.length)void 0!==u&&(o(e)?e.splice(s,1):delete e[s]);else if(void 0!==e[s])return c(e[s],i.slice(1));return e}}var l=Object.prototype.toString,f=Object.prototype.hasOwnProperty,h=function(t){return Object.keys(h).reduce(function(e,n){return"function"==typeof h[n]&&(e[n]=h[n].bind(h,t)),e},{})};return h.has=function(e,s){if(t(e))return!1;if(n(s)?s=[s]:r(s)&&(s=s.split(".")),t(s)||0===s.length)return!1;for(var a=0;a<s.length;a++){var u=s[a];if(!i(e)&&!o(e)||!f.call(e,u))return!1;e=e[u]}return!0},h.ensureExists=function(t,e,n){return u(t,e,n,!0)},h.set=function(t,e,n,r){return u(t,e,n,r)},h.insert=function(t,e,n,r){var i=h.get(t,e);r=~~r,o(i)||(i=[],h.set(t,e,i)),i.splice(r,0,n)},h.empty=function(e,a){if(t(a))return e;if(!t(e)){var u,c;if(!(u=h.get(e,a)))return e;if(r(u))return h.set(e,a,"");if(s(u))return h.set(e,a,!1);if(n(u))return h.set(e,a,0);if(o(u))u.length=0;else{if(!i(u))return h.set(e,a,null);for(c in u)f.call(u,c)&&delete u[c]}}},h.push=function(t,e){var n=h.get(t,e);o(n)||(n=[],h.set(t,e,n)),n.push.apply(n,Array.prototype.slice.call(arguments,2))},h.coalesce=function(t,e,n){for(var r,i=0,o=e.length;i<o;i++)if(void 0!==(r=h.get(t,e[i])))return r;return n},h.get=function(e,i,o){if(n(i)&&(i=[i]),t(i))return e;if(t(e))return o;if(r(i))return h.get(e,i.split("."),o);var s=a(i[0]);return 1===i.length?void 0===e[s]?o:e[s]:h.get(e[s],i.slice(1),o)},h.del=function(t,e){return c(t,e)},h})},function(t,e,n){function r(t,e,n,r){var o=this;o.options=!1,o.browsers=[],o.socketId="";var s=r.get("pagesConfig"),a=r.get("Pages"),u=r.get("Socket"),c=r.get("Clients");o.ui={menu:s,sectionMenu:!1,disconnected:!1},o.setActiveSection=function(t){a.enable(t),n.path(t.path),o.ui.sectionMenu=!1},o.reloadAll=function(){c.reloadAll(),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Reload All Browsers  ✔"})},o.scrollAllTo=function(){c.scrollAllTo(0),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Scroll all browsers to Y=0  ✔"})},o.sendAllTo=function(t){c.sendAllTo(t),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Reset all Browsers to /"})},o.toggleMenu=function(){o.ui.sectionMenu=!o.ui.sectionMenu},o.socketEvents={connection:function(t){o.update(t)},disconnect:function(){o.ui.disconnected=!0}},o.update=function(t){o.options=i(t),o.ui.disconnected=!1,a.transform(s.overview,function(t){return t})},o.setActiveSection(a.current()),u.options().then(o.socketEvents.connection),e.$on("ui:disconnect",o.socketEvents.disconnect),e.$on("ui:connection",function(e,n){o.socketEvents.connection(n),t.$digest()})}function i(t){return t.displayUrl=o(t.urls),t}function o(t){return!!t&&(t.external||t.local)}n(5).controller("MainController",["$scope","$rootScope","$location","$injector",r])},function(t,e,n){var t=n(5),r=n(71);t.filter("ucfirst",function(){return r.ucfirst}).filter("localRootUrl",function(){return r.localRootUrl}).filter("localUrl",function(){return r.localRootUrl}).filter("orderObjectBy",function(){return r.orderObjectBy})},function(t,e){t.exports={ucfirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},localRootUrl:function(t,e){return[e,"://",window.location.hostname,":",t].join("")},localUrl:function(t,e,n){return"snippet"===n?t:["//",window.location.hostname,":",e,t].join("")},orderObjectBy:function(t,e,n){var r=[];return Object.keys(t).forEach(function(e){r.push(t[e])}),r.sort(function(t,n){return t[e]>n[e]?1:-1}),n&&r.reverse(),r}}},function(t,e,n){var t=n(5);t.directive("icon",n(73)),t.directive("linkTo",n(74)),t.directive("switch",n(75)),t.directive("newTab",n(76))},function(t,e){t.exports=function(){return{scope:{icon:"@"},restrict:"E",replace:!0,template:'<svg bs-svg-icon><use xlink:href="{{iconName}}"></use></svg>',link:function(t,e,n){return t.iconName="#svg-"+t.icon,t}}}},function(t,e){t.exports=function(){return{restrict:"E",replace:!1,transclude:!0,scope:{path:"@"},template:"<a href='#' ng-click='navi(path)' ng-transclude=''>as</a>",controller:["$scope","$location","$injector",function(t,e,n){var r=n.get("pagesConfig"),i=n.get("Pages");t.navi=function(t){var n=r[t];i.enable(n),e.path(t)}}]}}},function(t,e){t.exports=function(){return{scope:{toggle:"&",item:"=",switchid:"@",title:"@",tagline:"@",active:"=",prop:"@"},restrict:"E",replace:!0,transclude:!0,templateUrl:"bs-switch.html",controllerAs:"ctrl",controller:["$scope",function(t){this.item=t.item}]}}},function(t,e){t.exports=function(){return{scope:{url:"@",mode:"@"},restrict:"E",replace:!0,template:'<a href="{{url}}" bs-button="subtle-alt icon" target="_blank" title="Open a new tab" ng-show="mode !== \'snippet\'"><icon icon="newtab"></icon> New Tab </a>'}}}]);